Re: [csswg-drafts] [cssom][css-nesting] Error behavior for insertRule with declaration blocks. (#10520)

Throwing on invalid declarations sounds bad for forwards compat, we probably shouldn't try to do that.

> I think if we are not throwing on invalid declarations (at all), then we should not throw on empty.

All right, but we still need to define the behavior when the when the [parsed declarations](https://drafts.csswg.org/cssom/#parse-a-css-declaration-block) is an empty list. I assume we'll just ignore it, i.e. not create/insert a `CSSNestedDeclarations` rule?

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


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

Received on Wednesday, 31 July 2024 10:32:35 UTC