Skip to content

Commit

Permalink
Further changes required by Servo
Browse files Browse the repository at this point in the history
  • Loading branch information
Loirooriol committed Nov 3, 2023
1 parent ac8d459 commit 0d4936a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/style/values/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ where
}

fn nan_inf_enabled() -> bool {
static_prefs::pref!("layout.css.nan-inf.enabled")
#[cfg(feature = "gecko")]
return static_prefs::pref!("layout.css.nan-inf.enabled");
#[cfg(feature = "servo")]
return false;
}

/// Serialize a specified dimension with unit, calc, and NaN/infinity handling (if enabled)
Expand Down

0 comments on commit 0d4936a

Please sign in to comment.