OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>flexbox | computed style | order: -1</title> | 2 <title>flexbox | computed style | order: -1</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 html { | 9 html { |
9 order: 666; | 10 order: 666; |
10 } | 11 } |
11 body { | 12 body { |
12 color: red; | 13 color: red; |
13 order: inherit; | 14 order: inherit; |
14 } | 15 } |
15 .PASS {color: black;} | |
16 </style> | 16 </style> |
17 <h1>FAIL, enable javascript</h1> | 17 <div id="log"></div> |
18 <script> | 18 <script> |
| 19 test(function() { |
19 var body = document.body; | 20 var body = document.body; |
20 | 21 |
21 var passed = | 22 assert_equals(getComputedStyle(body).getPropertyValue("order"), |
22 » getComputedStyle(body).getPropertyValue("order") == | 23 » "666"); |
23 » "666"; | 24 }); |
24 body.textContent = body.className = passed ? "PASS" : "FAIL"; | |
25 </script> | 25 </script> |
OLD | NEW |