- From: Justin Fagnani <notifications@github.com>
- Date: Thu, 21 Mar 2024 11:08:17 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <WICG/webcomponents/issues/909/2013201386@github.com>
> > > I am not entirely sure why shadow crossing combinators have such a mindshare in this issue and keep coming up. > > > > > > The answer is simple: _framework components_ f.e. in React, Preact, Svelte, Vue, Solid, Angular, etc, all have this feature out of the box. We need to make the migration story from framework components to custom elements _easy_ for all web developers. Cross-root selectors like `.foo .bar` are essentially required for this. > > What do you mean by "all have this feature out of the box"? Clearly, cross-shadow combinator isn't a thing today. I think he means that by using a proprietary composition mechanism and not using shadow DOM, the frameworks inherently let you shadow their composed tree, because the composed tree _is_ the light DOM. So what would be to us cross-shadow combinators are to them just combinators that cross scope boundaries that the browser isn't aware of. > > > People haven't really mentioned it, but really what cross-root selectors means is styling the _composed tree_. It is simple and reasonable to want that. > > That sounds like an entirely different problem statement. Please go file a separate issue instead of conflating that in this issue. It's not unrelated though. I though such a thing was impossible, but if it were possible, I think it could subsume this proposal and probably be strictly better. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/909#issuecomment-2013201386 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/909/2013201386@github.com>
Received on Thursday, 21 March 2024 18:08:21 UTC