Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-05-27 08:10:05 +02:00
parent bb703e303d
commit 2a11460915
2 changed files with 2 additions and 0 deletions

View file

@ -106,6 +106,7 @@ impl CSSRule {
StyleCssRule::Page(_) => unreachable!(),
StyleCssRule::Document(_) => unimplemented!(), // TODO
StyleCssRule::Layer(_) => unimplemented!(), // TODO
StyleCssRule::ScrollTimeline(_) => unimplemented!(), // TODO
}
}

View file

@ -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)