- From: Guillaume via GitHub <noreply@w3.org>
- Date: Fri, 23 Jan 2026 06:45:04 +0000
- To: public-css-archive@w3.org
cdoublev has just submitted a new pull request for https://github.com/w3c/csswg-drafts:
== [cssom-1] Append only one newline in @media rule block ==
The [current algorithm](https://drafts.csswg.org/cssom-1/#serialize-a-css-rule) definition requires adding two newlines:
> 3. A single SPACE (U+0020), followed by the string "{", i.e., LEFT CURLY BRACKET (U+007B), followed by **a newline**.
> 4. The result of performing serialize a CSS rule on each rule in the rule’s cssRules list, filtering out empty strings, indenting each item with two spaces, all joined with newline.
> 5. **A newline**, followed by the string "}", i.e., RIGHT CURLY BRACKET (U+007D)
Based on [WPT tests](https://github.com/web-platform-tests/wpt/blob/master/css/cssom/serialize-media-rule.html) and the [original commit](https://github.com/w3c/csswg-drafts/pull/728) of the current version, I think this is an obvious bugfix.
See https://github.com/w3c/csswg-drafts/pull/13386
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 23 January 2026 06:45:05 UTC