diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 71bf6f1e78a..b8a9255db48 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1486,13 +1486,13 @@ impl ShorthandId { // shorthand, since it only accepts CSS-wide keywords (and // variable references), which will be handled in // get_shorthand_appendable_value. - Err(fmt::Error) + Ok(()) } % for property in data.shorthands_except_all(): ShorthandId::${property.camel_case} => { match shorthands::${property.ident}::LonghandsToSerialize::from_iter(declarations) { Ok(longhands) => longhands.to_css(dest), - Err(_) => Err(fmt::Error) + Err(_) => Ok(()) } }, % endfor