- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Mon, 06 Feb 2023 13:26:46 +0000
- To: public-css-archive@w3.org
> [...] This includes in the OM. (That is, the `childRules` attribute actually starts with this nested style rule, containing all the directly-nested properties.)
> The `CSSMediaRule` object will have a single `CSSStyleRule` object in its `.childRules` attribute, containing the `grid-auto-flow` property.
I guess you mean `.cssRules` instead of `.childRules`.
Should this implicit nested style rule always exist when the condition rule is nested, even if it has no declaration? I mean, does `CSSMediaRule.cssRules[0]` have to be an empty nested style rule?
```css
#parent {
@media {
& { color: green }
}
}
```
If not, what should happen with `CSSMediaRule.cssText += `color: red`? Should the previously exsting rule (`& { color: green }`) move to index `1`?
--
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7850#issuecomment-1419080705 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 6 February 2023 13:26:48 UTC