flex-basis-006.html (907B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: flex-basis - 0%</title> 4 <link rel="author" title="Intel" href="http://www.intel.com"> 5 <link rel="author" title="Intel" href="mailto:shiyoux.tan@intel.com"> 6 <link rel="help" title="7.3.3. The 'flex-basis' property" href="http://www.w3.org/TR/css-flexbox-1/#flex-basis-property"> 7 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 8 <meta name="assert" content="The 'flex-basis' property set '0%', the actual width of tested element is same as 0."> 9 <style> 10 #container { 11 background-color: green; 12 display: flex; 13 height: 100px; 14 width: 100px; 15 } 16 #test { 17 background-color: red; 18 flex-basis: 0%; 19 height: 100px; 20 width: 100px; 21 } 22 </style> 23 <body> 24 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 25 <div id="container"> 26 <div id="test"></div> 27 </div> 28 </body>