diff --git a/components/style/properties/longhands/ui.mako.rs b/components/style/properties/longhands/ui.mako.rs index 3f7d71a6715..f6afd6994bd 100644 --- a/components/style/properties/longhands/ui.mako.rs +++ b/components/style/properties/longhands/ui.mako.rs @@ -326,7 +326,7 @@ ${helpers.predefined_type( vector=True, need_index=True, animation_value_type="none", - gecko_pref="layout.css.scroll-linked-animations.enabled", + gecko_pref="layout.css.scroll-driven-animations.enabled", spec="https://drafts.csswg.org/css-animations-2/#propdef-animation-timeline", rule_types_allowed=DEFAULT_RULES_EXCEPT_KEYFRAME, )} @@ -337,8 +337,8 @@ ${helpers.predefined_type( "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", + gecko_pref="layout.css.scroll-driven-animations.enabled", + spec="https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-name", rule_types_allowed=DEFAULT_RULES_EXCEPT_KEYFRAME, )} @@ -348,7 +348,7 @@ ${helpers.predefined_type( "computed::ScrollAxis::default()", engines="gecko", animation_value_type="none", - gecko_pref="layout.css.scroll-linked-animations.enabled", - spec="https://github.com/w3c/csswg-drafts/issues/6674", + gecko_pref="layout.css.scroll-driven-animations.enabled", + spec="https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-axis", rule_types_allowed=DEFAULT_RULES_EXCEPT_KEYFRAME, )} diff --git a/components/style/properties/shorthands/ui.mako.rs b/components/style/properties/shorthands/ui.mako.rs index 1b20044f1d0..f9255d79532 100644 --- a/components/style/properties/shorthands/ui.mako.rs +++ b/components/style/properties/shorthands/ui.mako.rs @@ -190,9 +190,9 @@ macro_rules! try_parse_one { % endfor } - fn scroll_linked_animations_enabled() -> bool { + fn scroll_driven_animations_enabled() -> bool { #[cfg(feature = "gecko")] - return static_prefs::pref!("layout.css.scroll-linked-animations.enabled"); + return static_prefs::pref!("layout.css.scroll-driven-animations.enabled"); #[cfg(feature = "servo")] return false; } @@ -221,7 +221,7 @@ macro_rules! try_parse_one { try_parse_one!(context, input, fill_mode, animation_fill_mode); try_parse_one!(context, input, play_state, animation_play_state); try_parse_one!(context, input, name, animation_name); - if scroll_linked_animations_enabled() { + if scroll_driven_animations_enabled() { try_parse_one!(context, input, timeline, animation_timeline); } @@ -320,9 +320,8 @@ macro_rules! try_parse_one { engines="gecko" name="scroll-timeline" sub_properties="scroll-timeline-name scroll-timeline-axis" - gecko_pref="layout.css.scroll-linked-animations.enabled", - // Also in https://drafts.csswg.org/scroll-animations-1/rewrite#scroll-timeline-shorthand - spec="https://github.com/w3c/csswg-drafts/issues/6674" + gecko_pref="layout.css.scroll-driven-animations.enabled", + spec="https://drafts.csswg.org/scroll-animations-1/#scroll-timeline-shorthand" > pub fn parse_value<'i>( context: &ParserContext,