summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/scroll-animations/css/view-timeline-attachment-parsing-tentative.html
blob: 25e20135f149d621f0b4cb88bbb69ee6a3f9cc11 (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>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<div id="target"></div>

<script>

test_valid_value('view-timeline-attachment', 'initial');
test_valid_value('view-timeline-attachment', 'inherit');
test_valid_value('view-timeline-attachment', 'unset');
test_valid_value('view-timeline-attachment', 'revert');

test_valid_value('view-timeline-attachment', 'local');
test_valid_value('view-timeline-attachment', 'defer');
test_valid_value('view-timeline-attachment', 'ancestor');
test_valid_value('view-timeline-attachment', 'local, defer');
test_valid_value('view-timeline-attachment', 'defer, ancestor');
test_valid_value('view-timeline-attachment', 'local, defer, ancestor, local');
test_valid_value('view-timeline-attachment', 'local, local, local, local');

test_invalid_value('view-timeline-attachment', 'abc');
test_invalid_value('view-timeline-attachment', '10px');
test_invalid_value('view-timeline-attachment', 'auto');
test_invalid_value('view-timeline-attachment', 'none');
test_invalid_value('view-timeline-attachment', 'local defer');
test_invalid_value('view-timeline-attachment', 'local / defer');

</script>