diff --git a/components/script/dom/cssstylesheet.rs b/components/script/dom/cssstylesheet.rs index 992b773c554..e68e8f0f428 100644 --- a/components/script/dom/cssstylesheet.rs +++ b/components/script/dom/cssstylesheet.rs @@ -181,7 +181,7 @@ impl CSSStyleSheetMethods for CSSStyleSheet { } else { rule.push_str(" { "); rule.push_str(block.str()); - rule.push_str(" } "); + rule.push_str(" }"); }; // > 6. Let *index* be *optionalIndex* if provided, or the number of CSS rules in the stylesheet otherwise.