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