- From: Michael Warren <notifications@github.com>
- Date: Mon, 04 Mar 2024 08:05:49 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <WICG/webcomponents/issues/909/1976925577@github.com>
fwiw, @bkardell I think what you've outlined is exactly what folks are asking for. I think just the ability for css to apply as normally written to elements inside a shadow root. I haven't seen a use case where explicitly needing to select something inside a shadow root with a combinator like `/deep/` or `/shadow/` is a use case? If styles just work like they do in your example above, the combinator wouldn't be necessary at all. In your use case above, there is no explicit indication in the stylesheet that the `.bar button {}` selector would be applying to a button inside a shadow root. Personally speaking, I don't think there needs to be any kind of special combinator to explicitly denote "only select buttons elements that are children of `.bar` classes if they are inside a shadow root". I have always thought that the major point of the "open stylable" feature is mostly to abstract away the concept of shadow roots with respect to styling. in your example above, the person that writes `.bar button {}` doesn't actually have to care/specify whether or not "buttons that are children of `.bar` classes" are in shadow roots or not. If some are, great. If other's aren't, also great. IMO, your example is the crux of the entire feature and nothing more is really needed. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/909#issuecomment-1976925577 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/909/1976925577@github.com>
Received on Monday, 4 March 2024 16:05:53 UTC