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