summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-overflow/parsing/scrollbar-gutter-invalid.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-overflow/parsing/scrollbar-gutter-invalid.html')
-rw-r--r--testing/web-platform/tests/css/css-overflow/parsing/scrollbar-gutter-invalid.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-overflow/parsing/scrollbar-gutter-invalid.html b/testing/web-platform/tests/css/css-overflow/parsing/scrollbar-gutter-invalid.html
new file mode 100644
index 0000000000..4f669225ee
--- /dev/null
+++ b/testing/web-platform/tests/css/css-overflow/parsing/scrollbar-gutter-invalid.html
@@ -0,0 +1,37 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>CSS Overflow: parsing invalid scrollbar-gutter declarations</title>
+<link rel="author" title="Felipe Erias Morandeira" href="mailto:felipeerias@gmail.com"/>
+<link rel="help" href="https://www.w3.org/TR/css-overflow-4/#scollbar-gutter-property"/>
+<meta name="assert" content="Parsing invalid scrollbar-gutter declarations">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/parsing-testcommon.js"></script>
+
+<script>
+
+ test_invalid_value("scrollbar-gutter", "auto both");
+ test_invalid_value("scrollbar-gutter", "force auto");
+ test_invalid_value("scrollbar-gutter", "auto always");
+ test_invalid_value("scrollbar-gutter", "always stable");
+ test_invalid_value("scrollbar-gutter", "force");
+ test_invalid_value("scrollbar-gutter", "both");
+ test_invalid_value("scrollbar-gutter", "force both");
+
+ test_invalid_value("scrollbar-gutter", "");
+ test_invalid_value("scrollbar-gutter", "0");
+ test_invalid_value("scrollbar-gutter", "1px");
+ test_invalid_value("scrollbar-gutter", "3em");
+ test_invalid_value("scrollbar-gutter", "1 2 3");
+ test_invalid_value("scrollbar-gutter", "none");
+ test_invalid_value("scrollbar-gutter", "red");
+
+ test_invalid_value("scrollbar-gutter", "stable both");
+ test_invalid_value("scrollbar-gutter", "stable force");
+ test_invalid_value("scrollbar-gutter", "stable both force");
+ test_invalid_value("scrollbar-gutter", "always");
+ test_invalid_value("scrollbar-gutter", "always both");
+ test_invalid_value("scrollbar-gutter", "always force");
+ test_invalid_value("scrollbar-gutter", "always both force");
+
+</script>