aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-lists/parsing/counter-set-computed.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-lists/parsing/counter-set-computed.html')
-rw-r--r--tests/wpt/web-platform-tests/css/css-lists/parsing/counter-set-computed.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-lists/parsing/counter-set-computed.html b/tests/wpt/web-platform-tests/css/css-lists/parsing/counter-set-computed.html
new file mode 100644
index 00000000000..d0a92896ed7
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-lists/parsing/counter-set-computed.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>CSS Lists: getComputedStyle().counterSet</title>
+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#propdef-counter-set">
+<meta name="assert" content="tests that counter-set grammar is supported.">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/css/support/computed-testcommon.js"></script>
+</head>
+<body>
+<div id="target"></div>
+<script>
+test_computed_value('counter-set', 'none');
+test_computed_value('counter-set', 'myCounter', 'myCounter 0');
+test_computed_value('counter-set', 'myCounter 5');
+test_computed_value('counter-set', 'myCounter 7 otherCounter 8');
+test_computed_value('counter-set', 'myCounter otherCounter 8', 'myCounter 0 otherCounter 8');
+test_computed_value('counter-set', 'myCounter 7 otherCounter', 'myCounter 7 otherCounter 0');
+</script>
+</body>
+</html>