Skip to content

Commit edbf7dd

Browse files
tuankiet65fantasai
authored andcommitted
Add anchor positioning properties to web-animations/animation-model/animation-types/property-list.js
Add all anchor positioning properties except position-area, which its animation type is TBD.
1 parent eea44e9 commit edbf7dd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

web-animations/animation-model/animation-types/property-list.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ const gCSSProperties1 = {
2525
{ type: 'discrete', options: [ [ 'flex-start', 'flex-end' ] ] }
2626
]
2727
},
28+
'anchor-name': {
29+
// https://drafts.csswg.org/css-anchor-position-1/#name
30+
types: [
31+
{ type: 'discrete', options: [ [ 'none', '--anchor' ] ] }
32+
]
33+
},
2834
'anchor-scope': {
2935
// https://drafts.csswg.org/css-anchor-position-1/#anchor-scope
3036
types: [
@@ -1279,6 +1285,30 @@ const gCSSProperties2 = {
12791285
{ type: 'discrete', options: [ [ 'absolute', 'fixed' ] ] }
12801286
]
12811287
},
1288+
'position-anchor': {
1289+
// https://drafts.csswg.org/css-anchor-position-1/#position-anchor
1290+
types: [
1291+
{ type: 'discrete', options: [ [ 'auto', '--anchor' ] ] }
1292+
]
1293+
},
1294+
'position-visibility': {
1295+
// https://drafts.csswg.org/css-anchor-position-1/#position-visibility
1296+
types: [
1297+
{ type: 'discrete', options: [ [ 'always', 'anchors-valid' ] ] }
1298+
]
1299+
},
1300+
'position-try-fallbacks': {
1301+
// https://drafts.csswg.org/css-anchor-position-1/#position-try-fallbacks
1302+
types: [
1303+
{ type: 'discrete', options: [ [ 'none', 'flip-block' ] ] }
1304+
]
1305+
},
1306+
'position-try-order': {
1307+
// https://drafts.csswg.org/css-anchor-position-1/#position-try-order-property
1308+
types: [
1309+
{ type: 'discrete', options: [ [ 'normal', 'most-width' ] ] }
1310+
]
1311+
},
12821312
'quotes': {
12831313
// https://drafts.csswg.org/css-content-3/#propdef-quotes
12841314
types: [

0 commit comments

Comments
 (0)