diff --git a/components/style/lib.rs b/components/style/lib.rs index 1a28fe65c16..8cf85868a86 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -163,6 +163,7 @@ pub use style_traits::owned_str::OwnedStr; use std::hash::{BuildHasher, Hash}; +#[macro_use] pub mod properties; #[cfg(feature = "gecko")] diff --git a/components/style/properties/cascade.rs b/components/style/properties/cascade.rs index 7f0d9f8d599..0b3b2a71c39 100644 --- a/components/style/properties/cascade.rs +++ b/components/style/properties/cascade.rs @@ -25,6 +25,7 @@ use crate::shared_lock::StylesheetGuards; use crate::style_adjuster::StyleAdjuster; use crate::stylesheets::container_rule::ContainerSizeQuery; use crate::stylesheets::{layer_rule::LayerOrder, Origin}; +#[cfg(feature = "gecko")] use crate::values::specified::length::FontBaseSize; use crate::values::{computed, specified}; use fxhash::FxHashMap;