summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html')
-rw-r--r--testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html
new file mode 100644
index 0000000000..4f9c4a46b6
--- /dev/null
+++ b/testing/web-platform/tests/css/css-typed-om/the-stylepropertymap/properties/scroll-snap-type.html
@@ -0,0 +1,29 @@
+<!doctype html>
+<meta charset="utf-8">
+<title>'scroll-snap-type' property</title>
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-get">
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set">
+<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#property-stle-value-normalization">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="../../resources/testhelper.js"></script>
+<script src="resources/testsuite.js"></script>
+<body>
+<div id="log"></div>
+<script>
+'use strict';
+
+runPropertyTests('scroll-snap-type', [
+ { syntax: 'none' },
+ { syntax: 'x' },
+ { syntax: 'y' },
+ { syntax: 'block' },
+ { syntax: 'inline' },
+ { syntax: 'both' },
+]);
+
+runUnsupportedPropertyTests('scroll-snap-type', [
+ 'x mandatory', 'inline proximity'
+]);
+
+</script>