From 8c6dc3fee190c905023e26f0492874c6eaae19ec Mon Sep 17 00:00:00 2001 From: Usman Yahaya Baba <91813795+uthmaniv@users.noreply.github.com> Date: Mon, 7 Apr 2025 16:20:39 +0100 Subject: [PATCH] Remove trailing space in CSSStyleSheet::AddRule() (#36383) -Remove trailing space in CSSStyleSheet::AddRule() Testing: The change made does not require testing Fixes: https://github.com/servo/servo/issues/36380 Signed-off-by: Uthman Yahaya Baba --- components/script/dom/cssstylesheet.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.