flexbox_computedstyle_flex-flow-column.html (798B)
1 <!DOCTYPE html> 2 <title>flexbox | computed style | flex-flow: column</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-flow-property"> 5 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#valdef-flex-direction-column"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <meta name="flags" content="dom"> 9 <style> 10 body { 11 color: red; 12 flex-flow: column; 13 } 14 </style> 15 <div id="log"></div> 16 <script> 17 test(function() { 18 var body = document.body; 19 20 assert_equals(getComputedStyle(body).getPropertyValue("flex-direction"), 21 "column"); 22 assert_equals(getComputedStyle(body).getPropertyValue("flex-wrap"), 23 "nowrap"); 24 }); 25 </script>