Re: [csswg-drafts] [cssom] "insert a CSS rule" should throw if given a valid rule *with* declarations (#10652)

We should probably fix https://drafts.csswg.org/cssom/#parse-a-css-declaration-block, and not "insert a CSS rule", right? Otherwise we get the same issues for e.g. `CSSStyleDeclaration.cssText = "@media (width: 100px) {...} --foo: bar"`.

Can we really not just spec an algorithm in css-syntax, "Consume a list of declarations" which does exactly that?

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


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

Received on Wednesday, 11 September 2024 21:32:12 UTC