Skip to content

Commit 4168140

Browse files
bfgeekchromium-wpt-export-bot
authored andcommitted
[anchor] Enable the CSSPositionAnchorNone feature.
This also updates the parsing test to accept "none" and ensure its the default. As per resolution in: w3c/csswg-drafts#13067 (comment) Bug: 460415950 Change-Id: I411cbf774c2587889478e89ab296c482c3839855
1 parent 340ed56 commit 4168140

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

css/css-anchor-position/position-anchor-basics.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,24 @@
1515

1616
<script>
1717
// position-anchor: <anchor-element>
18-
// <anchor-element> = auto | <dashed-ident>
18+
// <anchor-element> = none | auto | <dashed-ident>
1919
test_valid_value('position-anchor', 'auto');
2020
test_valid_value('position-anchor', '--foo');
21-
test_invalid_value('position-anchor', 'none');
21+
test_valid_value('position-anchor', 'none');
2222
test_invalid_value('position-anchor', 'foo-bar');
2323
test_invalid_value('position-anchor', '--foo --bar')
2424
test_invalid_value('position-anchor', '--foo, --bar')
2525
test_invalid_value('position-anchor', '100px');
2626
test_invalid_value('position-anchor', '100%');
2727

2828
// Computed value: as specified
29+
test_computed_value('position-anchor', 'none');
2930
test_computed_value('position-anchor', 'auto');
3031
test_computed_value('position-anchor', '--foo');
3132

32-
// Initial: auto
33+
// Initial: none
3334
// Inherited: no
34-
assert_not_inherited('position-anchor', 'auto', '--foo');
35+
assert_not_inherited('position-anchor', 'none', '--foo');
3536

3637
// Animation type: discrete
3738
test_no_interpolation({

0 commit comments

Comments
 (0)