Index: LayoutTests/css3/device-adapt/viewport-invalid-values-001.html |
diff --git a/LayoutTests/css3/device-adapt/viewport-invalid-values-001.html b/LayoutTests/css3/device-adapt/viewport-invalid-values-001.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c7a74229815b40c687ca985d0560c696cfb1921c |
--- /dev/null |
+++ b/LayoutTests/css3/device-adapt/viewport-invalid-values-001.html |
@@ -0,0 +1,33 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <title>'initial' and 'inherit' are invalid values for @viewport descriptors</title> |
+ <script src="../../resources/testharness.js"></script> |
+ <script src="../../resources/testharnessreport.js"></script> |
+ <script> |
+ if (window.testRunner) { |
+ testRunner.enableFixedLayoutMode(true); |
+ internals.settings.setViewportEnabled(true); |
+ } |
+ </script> |
+ <style> |
+ /* 'initial' and 'inherit' are invalid keywords for viewport descriptors. */ |
+ @viewport { min-width: initial; } |
+ @viewport { min-width: inherit; } |
+ </style> |
+</head> |
+<body> |
+ <div id="log"></div> |
+ <script> |
+ test(function(){ |
+ assert_equals(document.styleSheets[0].cssRules.length, 2); |
+ }, "Check that both @viewport rules are created."); |
+ test(function(){ |
+ assert_equals(document.styleSheets[0].cssRules[0].style.length, 0); |
+ }, "Check that \"min-width: initial\" is dropped."); |
+ test(function(){ |
+ assert_equals(document.styleSheets[0].cssRules[0].style.length, 0); |
+ }, "Check that \"min-width: inherit\" is dropped."); |
+ </script> |
+</body> |
+</html> |