| Index: LayoutTests/printing/page-rule-specificity.html
|
| diff --git a/LayoutTests/printing/page-rule-specificity.html b/LayoutTests/printing/page-rule-specificity.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..adc92d900ff86c7318af13001fe80d3c68316e84
|
| --- /dev/null
|
| +++ b/LayoutTests/printing/page-rule-specificity.html
|
| @@ -0,0 +1,30 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| + <title>Page rule specificity</title>
|
| + <script src="../resources/testharness.js"></script>
|
| + <script src="../resources/testharnessreport.js"></script>
|
| + <style>
|
| + @page :first {
|
| + margin-left: 100px;
|
| + }
|
| + @page {
|
| + margin-left: 50px;
|
| + }
|
| + </style>
|
| +</head>
|
| +<body>
|
| + <p id="log"></p>
|
| + <script>
|
| + test(function(){
|
| + assert_own_property(window, "testRunner");
|
| + assert_own_property(window, "internals");
|
| + }, "Test needs testRunner framework.");
|
| +
|
| + test(function(){
|
| + assert_equals(internals.pageProperty("margin-left", 0), "100", "Left margin.");
|
| + }, ":first specificity beats order of appearance.");
|
| +
|
| + </script>
|
| +</body>
|
| +</html>
|
|
|