summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-lists/parsing/counter-set-computed.html
blob: d0a92896ed7f8f08c550a708e2592bf4e5fb8908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>