OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 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> |
| 7 <script> |
| 8 if (window.testRunner) { |
| 9 testRunner.enableFixedLayoutMode(true); |
| 10 internals.settings.setViewportEnabled(true); |
| 11 } |
| 12 </script> |
| 13 <style> |
| 14 /* 'initial' and 'inherit' are invalid keywords for viewport descriptors
. */ |
| 15 @viewport { min-width: initial; } |
| 16 @viewport { min-width: inherit; } |
| 17 </style> |
| 18 </head> |
| 19 <body> |
| 20 <div id="log"></div> |
| 21 <script> |
| 22 test(function(){ |
| 23 assert_equals(document.styleSheets[0].cssRules.length, 2); |
| 24 }, "Check that both @viewport rules are created."); |
| 25 test(function(){ |
| 26 assert_equals(document.styleSheets[0].cssRules[0].style.length, 0); |
| 27 }, "Check that \"min-width: initial\" is dropped."); |
| 28 test(function(){ |
| 29 assert_equals(document.styleSheets[0].cssRules[0].style.length, 0); |
| 30 }, "Check that \"min-width: inherit\" is dropped."); |
| 31 </script> |
| 32 </body> |
| 33 </html> |
OLD | NEW |