| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>flexbox | computed style | flex-flow: wrap</title> | 2 <title>flexbox | computed style | flex-flow: wrap</title> |
| 3 <link rel="author" href="http://opera.com" title="Opera Software"> | 3 <link rel="author" href="http://opera.com" title="Opera Software"> |
| 4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow"> | 4 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#propdef-flex-flow"> |
| 5 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#valdef-flex-wrap-wrap
"> | 5 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#valdef-flex-wrap-wrap
"> |
| 6 <link rel="match" href="ref-pass-body.html"> | 6 <script src="../../../../resources/testharness.js"></script> |
| 7 <script src="../../../../resources/testharnessreport.js"></script> |
| 7 <meta name="flags" content="dom"> | 8 <meta name="flags" content="dom"> |
| 8 <style> | 9 <style> |
| 9 body { | 10 body { |
| 10 color: red; | 11 color: red; |
| 11 flex-flow: wrap; | 12 flex-flow: wrap; |
| 12 } | 13 } |
| 13 .PASS {color: black;} | |
| 14 </style> | 14 </style> |
| 15 <h1>FAIL, enable javascript</h1> | 15 <div id="log"></div> |
| 16 <script> | 16 <script> |
| 17 test(function() { |
| 17 var body = document.body; | 18 var body = document.body; |
| 18 | 19 |
| 19 var passed = | 20 assert_equals(getComputedStyle(body).getPropertyValue("flex-direction"), |
| 20 » (getComputedStyle(body).getPropertyValue("flex-direction") == | 21 » "row"); |
| 21 » "row" && | 22 assert_equals(getComputedStyle(body).getPropertyValue("flex-wrap"), |
| 22 » getComputedStyle(body).getPropertyValue("flex-wrap") == | 23 » "wrap"); |
| 23 » "wrap"); | 24 }); |
| 24 body.textContent = body.className = passed ? "PASS" : "FAIL"; | |
| 25 </script> | 25 </script> |
| OLD | NEW |