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

andruud has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [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 Monday, 30 September 2024 13:30:48 UTC