summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/scroll-animations/css/view-timeline-axis-parsing.html
blob: 1ebe4410a9547b8255a6c6696afc60462aafc04e (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', 'y');
test_valid_value('view-timeline-axis', 'x');
test_valid_value('view-timeline-axis', 'block, inline');
test_valid_value('view-timeline-axis', 'inline, block');
test_valid_value('view-timeline-axis', 'block, y, x, 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>