- From: Nathan Knowler <notifications@github.com>
- Date: Wed, 20 Mar 2024 21:32:34 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <WICG/webcomponents/issues/1052/2011198563@github.com>
> Could you elaborate why applying the entire stylesheet is problematic in your use case? @rniwa I updated [my comment above](https://github.com/WICG/webcomponents/issues/1052#issuecomment-2008672378) (under _“Why not all the styles (the entire stylesheet or all the stylesheets)?”_) to answer your question. > Not sure if [knowler](https://github.com/knowler) meant all of page's stylesheets, or a specific stylesheet imported by link / `@import`. I'd like to understand what use cases lead to the need to filter, or selectively apply, style rules because that seems like a key question here as I mentioned in https://github.com/WICG/webcomponents/issues/909 as well. For the use case above, I meant that I don’t want all of the document’s stylesheets. That use case is more flexible in regards to how I structure/split up my stylesheets, so if I needed to split out the styles I want to be included in the shadow roots into a separate stylesheet, then I wouldn’t have any issue doing that. I guess one potential complication is that I am likely using layers in the document, but in the shadow root I might have a different layering structure or no layering structure, so that would need to be considered if a singular mechanism for applying to styles to both the document and shadow root is used. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/1052#issuecomment-2011198563 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/1052/2011198563@github.com>
Received on Thursday, 21 March 2024 04:32:38 UTC