[csswg-drafts] [cssom] Need to specify serialization of CSS grouping rules

upsuper has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom] Need to specify serialization of CSS grouping rules ==
Specifically, `@media` and `@supports` rules at the moment.

For an `@media` rule like
```css
@media screen { div { color: white; } }
```
Gecko and Blink serialize it as
```css
@media screen {
  div { color: white; }
}
```
and Edge serializes it as
```css
@media screen {
 div { color: white; }
}
```

The serialization of CSS declaration block has been specified, but serialization of a CSS rule list has not.

I think the way Gecko and Blink do this makes sense for common cases, so we probably should spec that behavior.

(Note that in Firefox 57 backed by Stylo, the serialization is different, and I'm working on fixing it.)

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1985 using your GitHub account

Received on Tuesday, 14 November 2017 21:41:00 UTC