Re: [csswg-drafts] [css-scoping-1] Dynamic changes of state and attributes referenced by :host-context rules are pretty hard to handle efficiently. (#1914)

Another solution to replace host-context maybe `container style queries`.
Use CSS variable to define state you wanted, and use the inherited variable to query state in anywhere.

But it also hasn't  implemented by Firefox and Safari.

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


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

Received on Wednesday, 16 August 2023 05:42:47 UTC