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

 > That would mean that once we do have nested inline styles, we'd end up with an inconsistent CSSOM.

It already is inconsistent in exactly this fashion. Reading .cssText includes conditional group rules (such as `@media` or `@container`), but you cannot set them with .style (which forwards to .cssText). Making setting .style erase existing nested rules would just be even more inconsistent. (Also, “once we do have nested inline styles” may be construed as somewhat assumptious.)

-- 
GitHub Notification of comment by sesse
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7933#issuecomment-1287329814 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 18:56:12 UTC