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

Seconding @prantlf, the use case of styling a component descendants based on the parent is a pretty big one. 

E.g. suppose you have `<data-entry>` and `<data-point>` components that behave differently in a `<bar-chart>` compared to a `<pie-chart>`, akin to how in HTML `<option>` behaves differently depending on whether it's inside a `<select>` or a `<datalist>`. How to implement that without `:host-context()`?

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


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

Received on Tuesday, 19 October 2021 12:47:59 UTC