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

Yeah, while I don't like the OM's lack of errors, we should be consistent here - no error thrown, just nothing happens.

> 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?

Yeah, consistent behavior between "no decls given at all" and "only invalid decls given" - both result in no decls, so shouldn't create a rule.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10520#issuecomment-2260873738 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 16:07:03 UTC