Re: [csswg-drafts] [css-nesting] support nesting at-rules (#2891)

Conditional rules nesting is now defined, but `CSSConditionalRule.style` may be missing in [CSSOM](https://drafts.csswg.org/css-nesting-1/#cssom), or is it intentional to not define it?

Browsers currently do not support nested rules, but I hope the following exemple is syntactically correct:

```css
.selector {
  & .child {
    color: green;
  }
  @media all {
    color: red;
  }
}
```
```js
const { styleSheets: [{ cssRules: [nestedRule, mediaRule] }] } = document
console.log(nestedRule.style.color) // green
console.log(mediaRule.style) // undefined
console.log(el.style.color) // red
```

**Side question**

How do you know when/if a spec is ready for testing, to receive implementation experience, before moving to CR? I'm not sure that CSS Nesting is ready for testing. This is the reason why I did not create a new issue for this. If it is not ready, my comment does not matter so please forgive me for the noise.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2891#issuecomment-1067557252 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 15 March 2022 04:39:24 UTC