- From: robglidden <notifications@github.com>
- Date: Thu, 14 Mar 2024 11:46:12 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 14 March 2024 18:46:17 UTC
@boguz: > I also like the idea mentioned by @robglidden to allow users to add something like shadowlayers="buttons, inherit.BETTER-BUTTONS" to a component so it inherits some layers styles. > Would this also work on composed / nested components? If you mean a child shadow tree reaching into a parent shadow tree, then yes, [like so](https://github.com/WICG/webcomponents/issues/909#issuecomment-1993388146): ```css @layer revert.BETTER-BUTTONS; ``` In the [shadow layer](https://github.com/htmlcomponents/shadow-layers) proposal, I suggest to use the keyword "revert" instead of "inherit" to bring in a layer defined inside a parent shadow tree. This is because one might want to bring in styles either from the page or from a parent shadow tree, so there needs to be a way to tell which is meant. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/909#issuecomment-1998101763 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/909/1998101763@github.com>
Received on Thursday, 14 March 2024 18:46:17 UTC