[csswg-drafts] [css-nesting-1] Need to specify error-handling when writing selectors via OM (#7971)

tabatkins has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-nesting-1] Need to specify error-handling when writing selectors via OM ==
I need to specify what happens when you insert a nested style rule via the OM with a selector that violates the requirement to not start with an identifier or function, or modify the `.selectorText` of an existing rule to violate it.

I think the `.selectorText` update rule should do the check and, like if you try to set it to anything else that's not a valid selector, just do nothing.

For rule insertion, unsure whether we should silently drop such rules or raise an error.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7971 using your GitHub account


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

Received on Thursday, 27 October 2022 22:04:18 UTC