| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Page rule specificity</title> | 4 <title>Page rule specificity</title> |
| 5 <script src="../resources/testharness.js"></script> | 5 <script src="../resources/testharness.js"></script> |
| 6 <script src="../resources/testharnessreport.js"></script> | 6 <script src="../resources/testharnessreport.js"></script> |
| 7 <style> | 7 <style> |
| 8 @page :first { | 8 @page :first { |
| 9 margin-left: 100px; | 9 margin-left: 100px; |
| 10 } | 10 } |
| 11 @page { | 11 @page { |
| 12 margin-left: 50px; | 12 margin-left: 50px; |
| 13 } | 13 } |
| 14 </style> | 14 </style> |
| 15 </head> | 15 </head> |
| 16 <body> | 16 <body> |
| 17 <p id="log"></p> | 17 <p id="log"></p> |
| 18 <script> | 18 <script> |
| 19 test(function(){ | 19 test(function(){ |
| 20 assert_own_property(window, "testRunner"); | 20 assert_true(window.testRunner instanceof Object); |
| 21 assert_own_property(window, "internals"); | 21 assert_true(window.internals instanceof Object); |
| 22 }, "Test needs testRunner framework."); | 22 }, "Test needs testRunner framework."); |
| 23 | 23 |
| 24 test(function(){ | 24 test(function(){ |
| 25 assert_equals(internals.pageProperty("margin-left", 0), "100", "Left
margin."); | 25 assert_equals(internals.pageProperty("margin-left", 0), "100", "Left
margin."); |
| 26 }, ":first specificity beats order of appearance."); | 26 }, ":first specificity beats order of appearance."); |
| 27 | 27 |
| 28 </script> | 28 </script> |
| 29 </body> | 29 </body> |
| 30 </html> | 30 </html> |
| OLD | NEW |