flexbox_computedstyle_flex-basis-percent.html (662B)
1 <!DOCTYPE html> 2 <title>flexbox | computed style | flex-basis: percent</title> 3 <link rel="author" href="http://opera.com" title="Opera Software"> 4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-basis-property"> 5 <script src="/resources/testharness.js"></script> 6 <script src="/resources/testharnessreport.js"></script> 7 <meta name="flags" content="dom"> 8 <style> 9 html { 10 display: flex; 11 width: 100px; 12 } 13 body { 14 color: red; 15 margin: 0; 16 flex-basis: 100%; 17 } 18 </style> 19 <div id="log"></div> 20 <script> 21 test(function() { 22 var body = document.body; 23 24 assert_equals(getComputedStyle(body).getPropertyValue("flex-basis"), 25 "100%"); 26 }); 27 </script>