Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: LayoutTests/printing/page-rule-specificity.html

Issue 23597051: Use correct pseudo type for page selector specificity. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/printing/page-rule-specificity-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/printing/page-rule-specificity-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698