LibWeb: Parse the scroll-timeline-axis CSS property

This commit is contained in:
Callum Law 2025-11-20 23:04:29 +13:00 committed by Sam Atkins
parent e95f326f3d
commit 992b0a4dc6
Notes: github-actions[bot] 2025-11-28 13:26:31 +00:00
11 changed files with 135 additions and 0 deletions

View file

@ -110,6 +110,12 @@
"textarea",
"textfield"
],
"axis": [
"block",
"inline",
"x",
"y"
],
"background-attachment": [
"fixed",
"local",

View file

@ -628,6 +628,7 @@
"windowtext",
"wrap",
"wrap-reverse",
"x",
"x-end",
"x-large",
"x-start",
@ -635,6 +636,7 @@
"xx-large",
"xx-small",
"xxx-large",
"y",
"y-end",
"y-start",
"zoom-in",

View file

@ -745,6 +745,7 @@ Parser::ParseErrorOr<NonnullRefPtr<StyleValue const>> Parser::parse_css_value(Pr
return parse_all_as(tokens, [this](auto& tokens) { return parse_translate_value(tokens); });
case PropertyID::Scale:
return parse_all_as(tokens, [this](auto& tokens) { return parse_scale_value(tokens); });
case PropertyID::ScrollTimelineAxis:
case PropertyID::ScrollTimelineName:
return parse_all_as(tokens, [this, property_id](auto& tokens) { return parse_simple_comma_separated_value_list(property_id, tokens); });
case PropertyID::WhiteSpace:

View file

@ -3440,6 +3440,16 @@
"affects-layout": false,
"affects-stacking-context": true
},
"scroll-timeline-axis": {
"affects-layout": false,
"animation-type": "none",
"inherited": false,
"initial": "block",
"valid-types": [
"axis"
],
"multiplicity": "coordinating-list"
},
"scroll-timeline-name": {
"affects-layout": false,
"animation-type": "none",