W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

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

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Tue, 14 Nov 2017 21:40:58 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-273952904-1510695657-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Tuesday, 14 November 2017 21:41:03 UTC