From 0ebad03ab5c1512b68742e17a9fdbb761850d1ae Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Mon, 22 May 2023 00:37:47 +0200 Subject: [PATCH] Further changes required by Servo --- components/style/values/specified/font.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/style/values/specified/font.rs b/components/style/values/specified/font.rs index 52e0585b3b2..102c55420ab 100644 --- a/components/style/values/specified/font.rs +++ b/components/style/values/specified/font.rs @@ -790,7 +790,10 @@ impl Parse for FontSizeAdjust { ) -> Result> { 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.