- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Fri, 13 Oct 2023 13:42:09 +0000
- To: public-css-archive@w3.org
Nit: can you please clarify serializing an implicit nested style rule?
> When serializing a nested group rule, it must serialize solely with child rules.
https://drafts.csswg.org/css-nesting-1/#cssom
```html
<style>
style { @media { color: green; & { color: red; } } }
</style>
<script>
/**
* (line return are removed for clarity)
*
* Chrome: "@media { color: green; & { color: red; } }"
* FF: "@media { & { color: green; } & { color: red; } }"
*/
document.styleSheets[0].cssRules[0].cssRules[0].cssText;
</script>
```
- option 1 (Chrome): serialize declarations
- option 2 (FF, spec): serialize rules
- option 3: serialize merged rules (`@media { & { color: red } }`)
--
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7850#issuecomment-1761541956 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 13 October 2023 13:42:11 UTC