style: Support scroll-timeline-name longhand in style system

Implement "scroll-timeline-name: none | <custom-ident>".

Differential Revision: https://phabricator.services.mozilla.com/D146018
This commit is contained in:
Boris Chiou 2022-06-13 20:26:44 +00:00 committed by Martin Robinson
parent 105050d46d
commit 8d8594ef86
6 changed files with 65 additions and 6 deletions

View file

@ -304,3 +304,14 @@ ${helpers.predefined_type(
spec="https://drafts.csswg.org/css-animations-2/#propdef-animation-timeline",
rule_types_allowed=DEFAULT_RULES_EXCEPT_KEYFRAME,
)}
${helpers.predefined_type(
"scroll-timeline-name",
"ScrollTimelineName",
"computed::ScrollTimelineName::none()",
engines="gecko",
animation_value_type="none",
gecko_pref="layout.css.scroll-linked-animations.enabled",
spec="https://github.com/w3c/csswg-drafts/issues/6674",
rule_types_allowed=DEFAULT_RULES_EXCEPT_KEYFRAME,
)}