diff --git a/style/properties/longhands/font.mako.rs b/style/properties/longhands/font.mako.rs index 19eda566d..100e0f8cb 100644 --- a/style/properties/longhands/font.mako.rs +++ b/style/properties/longhands/font.mako.rs @@ -289,7 +289,7 @@ ${helpers.predefined_type( ${helpers.predefined_type( "-x-lang", "XLang", - engines="gecko", + engines="gecko servo", initial_value="computed::XLang::get_initial_value()", animation_value_type="none", enabled_in="", diff --git a/style/values/specified/font.rs b/style/values/specified/font.rs index 938e6aaf3..a9461dffe 100644 --- a/style/values/specified/font.rs +++ b/style/values/specified/font.rs @@ -1714,6 +1714,7 @@ impl XTextScale { ToResolvedValue, ToShmem, )] +#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))] /// Internal property that reflects the lang attribute pub struct XLang(#[css(skip)] pub Atom);