4 <title>'initial' and 'inherit' are invalid values for @viewport descriptors
</title>
5 <script src=
"../../resources/testharness.js"></script>
6 <script src=
"../../resources/testharnessreport.js"></script>
8 if (window
.testRunner
) {
9 internals
.settings
.setViewportEnabled(true);
13 /* 'initial' and 'inherit' are invalid keywords for viewport descriptors. */
14 @viewport { min-width: initial; }
15 @viewport { min-width: inherit; }
22 assert_equals(document
.styleSheets
[0].cssRules
.length
, 2);
23 }, "Check that both @viewport rules are created.");
25 assert_equals(document
.styleSheets
[0].cssRules
[0].style
.length
, 0);
26 }, "Check that \"min-width: initial\" is dropped.");
28 assert_equals(document
.styleSheets
[0].cssRules
[0].style
.length
, 0);
29 }, "Check that \"min-width: inherit\" is dropped.");