Skip to content

Commit af4ef29

Browse files
jfkthamemoz-wptsync-bot
authored andcommitted
Add 'none' keyword to CSS position-anchor property, and make it the initial value.
Differential Revision: https://phabricator.services.mozilla.com/D272521 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1999972 gecko-commit: 7f71662cdea5d6de048d7e586b6a0b5306cb6670 gecko-reviewers: firefox-style-system-reviewers, layout-reviewers, emilio
1 parent 3d8fdcd commit af4ef29

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>
19+
test_valid_value('position-anchor', 'none');
1920
test_valid_value('position-anchor', 'auto');
2021
test_valid_value('position-anchor', '--foo');
21-
test_invalid_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)