Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-05-22 00:37:47 +02:00
parent 16168fe4e7
commit 0ebad03ab5

View file

@ -790,7 +790,10 @@ impl Parse for FontSizeAdjust {
) -> Result<Self, ParseError<'i>> {
let location = input.current_source_location();
if let Ok(ident) = input.try_parse(|i| i.expect_ident_cloned()) {
#[cfg(feature = "gecko")]
let basis_enabled = static_prefs::pref!("layout.css.font-size-adjust.basis.enabled");
#[cfg(feature = "servo")]
let basis_enabled = false;
let basis = match_ignore_ascii_case! { &ident,
"none" => return Ok(FontSizeAdjust::none()),
// Check for size adjustment basis keywords if enabled.