-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathscroll-target-group-computed.html
More file actions
27 lines (24 loc) · 1.23 KB
/
scroll-target-group-computed.html
File metadata and controls
27 lines (24 loc) · 1.23 KB
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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Overflow: parsing scroll-target-group property computed values</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-target-group">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<div id="target"></div>
<script>
test_computed_value('scroll-target-group', 'initial', 'none');
test_computed_value('scroll-target-group', 'inherit', 'none');
test_computed_value('scroll-target-group', 'unset', 'none');
test_computed_value('scroll-target-group', 'revert', 'none');
test_computed_value('scroll-target-group', 'none');
test_computed_value('scroll-target-group', 'auto');
test(() => {
let style = getComputedStyle(document.getElementById('target'));
assert_not_equals(Array.from(style).indexOf('scroll-target-group'), -1);
}, 'The scroll-target-group property shows up in CSSStyleDeclaration enumeration');
test(() => {
let style = document.getElementById('target').style;
assert_not_equals(style.cssText.indexOf('scroll-target-group'), -1);
}, 'The scroll-target-group property shows up in CSSStyleDeclaration.cssText');
</script>