Re: [csswg-drafts] [css-nesting] Inserting new sub-rules with .style (#7933)

> Setting .style should replace anything inside the rule so: “color: red” is changed to “color: navy”, &.c is removed, and &.b is added (not sure what number that is in your list).

That would be 5. But 5 is inconsistent with current behavior for e.g. `@media`, and it's also inconsistent with the current definition of .style in CSSOM (which says to forward to .cssText, which says to parse a CSS declaration block, which cannot contain other rules). https://www.w3.org/TR/cssom-1/#dom-cssstyledeclaration-csstext

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


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

Received on Friday, 21 October 2022 16:26:49 UTC