diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 99d283da46c..71bf6f1e78a 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1537,6 +1537,11 @@ impl ShorthandId { return None; } + if self == ShorthandId::All { + // 'all' only supports variables and CSS wide keywords. + return None; + } + // Check whether all declarations can be serialized as part of shorthand. if declarations3.all(|d| d.may_serialize_as_part_of_shorthand()) { return Some(AppendableValue::DeclarationsForShorthand(self, declarations));