From 2a11460915c2eaf001cfb24def0654976e63dcf5 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Sat, 27 May 2023 08:10:05 +0200 Subject: [PATCH] Further changes required by Servo --- components/script/dom/cssrule.rs | 1 + components/style/stylesheets/rule_parser.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/components/script/dom/cssrule.rs b/components/script/dom/cssrule.rs index 5945123ac51..853a9c9b643 100644 --- a/components/script/dom/cssrule.rs +++ b/components/script/dom/cssrule.rs @@ -106,6 +106,7 @@ impl CSSRule { StyleCssRule::Page(_) => unreachable!(), StyleCssRule::Document(_) => unimplemented!(), // TODO StyleCssRule::Layer(_) => unimplemented!(), // TODO + StyleCssRule::ScrollTimeline(_) => unimplemented!(), // TODO } } diff --git a/components/style/stylesheets/rule_parser.rs b/components/style/stylesheets/rule_parser.rs index fe4988044d3..40ae7fb6188 100644 --- a/components/style/stylesheets/rule_parser.rs +++ b/components/style/stylesheets/rule_parser.rs @@ -477,6 +477,7 @@ impl<'a, 'b, 'i> AtRuleParser<'i> for NestedRuleParser<'a, 'b> { let cond = DocumentCondition::parse(self.context, input)?; AtRulePrelude::Document(cond) }, + #[cfg(feature = "gecko")] "scroll-timeline" if static_prefs::pref!("layout.css.scroll-linked-animations.enabled") => { let name = TimelineName::parse(self.context, input)?; AtRulePrelude::ScrollTimeline(name)