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
30
31
32
33
34
35
36
37
38
39
40
|
<!DOCTYPE html>
<title>Tests basics of the 'position-fallback' property</title>
<link rel="help" href="https://drafts.csswg.org/css-anchor-1/#propdef-position-fallback">
<link rel="author" href="mailto:xiaochengh@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script src="/css/support/computed-testcommon.js"></script>
<script src="/css/support/inheritance-testcommon.js"></script>
<script src="/css/support/interpolation-testcommon.js"></script>
<div id="container">
<div id="target"></div>
</div>
<script>
// position-fallback: none | <dashed-ident>
test_valid_value('position-fallback', 'none');
test_valid_value('position-fallback', '--foo');
test_invalid_value('position-fallback', 'foo-bar');
test_invalid_value('position-fallback', '--foo --bar')
test_invalid_value('position-fallback', '--foo, --bar')
test_invalid_value('position-fallback', '100px');
test_invalid_value('position-fallback', '100%');
// Computed value: as specified
test_computed_value('position-fallback', 'none');
test_computed_value('position-fallback', '--foo');
// Initial: none
// Inherited: no
assert_not_inherited('position-fallback', 'none', '--foo');
// Animation type: discrete
test_no_interpolation({
property: 'position-fallback',
from: '--foo',
to: 'none',
});
</script>
|