Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / printing / page-rule-specificity.html
blobcf91164db4e0b336a65f1401d65493fe9afea34d
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;
11 @page {
12 margin-left: 50px;
14 </style>
15 </head>
16 <body>
17 <p id="log"></p>
18 <script>
19 test(function(){
20 assert_true(window.testRunner instanceof Object);
21 assert_true(window.internals instanceof Object);
22 }, "Test needs testRunner framework.");
24 test(function(){
25 assert_equals(internals.pageProperty("margin-left", 0), "100", "Left margin.");
26 }, ":first specificity beats order of appearance.");
28 </script>
29 </body>
30 </html>