Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-10-27 13:47:17 +02:00 committed by Martin Robinson
parent a4ad5e19b0
commit 38caec4f89
2 changed files with 2 additions and 0 deletions

View file

@ -105,6 +105,7 @@ impl CSSRule {
StyleCssRule::Viewport(_) => unimplemented!(), // TODO
StyleCssRule::LayerBlock(_) => unimplemented!(), // TODO
StyleCssRule::LayerStatement(_) => unimplemented!(), // TODO
StyleCssRule::FontPaletteValues(_) => unimplemented!(), // TODO
}
}

View file

@ -503,6 +503,7 @@ impl<'a, 'b, 'i> AtRuleParser<'i> for NestedRuleParser<'a, 'b> {
let family_names = parse_family_name_list(self.context, input)?;
AtRulePrelude::FontFeatureValues(family_names)
},
#[cfg(feature = "gecko")]
"font-palette-values" if static_prefs::pref!("layout.css.font-palette.enabled") => {
let name = DashedIdent::parse(self.context, input)?;
AtRulePrelude::FontPaletteValues(name)