[csswg-drafts] Pull Request: [cssom] Don't serialize empty rules

andruud has just labeled a pull request from andruud for https://github.com/w3c/csswg-drafts as "Closed Accepted as Obvious Bugfix":

== [cssom] Don't serialize empty rules ==
With CSSOM, it's possible to reach into a CSSNestedDeclarations rule and remove its declarations, causing it to serialize as the empty string. Such rules add "whitespace junk" when serializing the outer rule, which looks unattractive.

Fixed by ignoring rules that serialize to the empty string.


See https://github.com/w3c/csswg-drafts/pull/10974


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 1 October 2024 11:06:34 UTC