summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-parsing.html
blob: ffcc36c32086d9720bd0b5b2d9f8542cee02769f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/scroll-animations-1/#view-timeline-axis">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
</head>
<div id="target"></div>
<script>
test_valid_value('view-timeline-axis', 'initial');
test_valid_value('view-timeline-axis', 'inherit');
test_valid_value('view-timeline-axis', 'unset');
test_valid_value('view-timeline-axis', 'revert');

test_valid_value('view-timeline-axis', 'block');
test_valid_value('view-timeline-axis', 'inline');
test_valid_value('view-timeline-axis', 'vertical');
test_valid_value('view-timeline-axis', 'horizontal');
test_valid_value('view-timeline-axis', 'block, inline');
test_valid_value('view-timeline-axis', 'inline, block');
test_valid_value('view-timeline-axis', 'block, vertical, horizontal, inline');
test_valid_value('view-timeline-axis', 'inline, inline, inline, inline');

test_invalid_value('view-timeline-axis', 'abc');
test_invalid_value('view-timeline-axis', '10px');
test_invalid_value('view-timeline-axis', 'auto');
test_invalid_value('view-timeline-axis', 'none');
test_invalid_value('view-timeline-axis', 'block inline');
test_invalid_value('view-timeline-axis', 'block / inline');
</script>