Re: [csswg-drafts] [css-nesting-1] Consider using ObservableArray<CSSRule> instead of CSSRuleList (#8350)

These are the other `cssRules` to maintain consistency with:
https://drafts.csswg.org/css-animations-1/#interface-csskeyframesrule
https://drafts.csswg.org/cssom-1/#the-cssstylesheet-interface
https://drafts.csswg.org/cssom-1/#the-cssgroupingrule-interface

The [use counter for the `item()` method](https://chromestatus.com/metrics/feature/timeline/popularity/760) is high enough that I don't think changing `cssRules` in place is tractable for site compat reasons. An additional attribute alongside `cssRules` seems to be the only remaining option, if the interaction between the two attributes could be defined sensibly.

In any case, this seems like an issue mainly for CSSOM, but also impacting animations and nesting. Can someone update labels?

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


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

Received on Wednesday, 1 February 2023 10:56:57 UTC