- From: Nathan Knowler <notifications@github.com>
- Date: Wed, 13 Mar 2024 10:47:06 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 13 March 2024 17:47:10 UTC
@mirisuzanne @mayank99 I’ve been toying with the idea of a syntax like this: ```css /* Inside the document — styles you want to apply to the document and to a shadow root */ @scope (:root, my-element:shadowroot) { :scope {} /* refers to root or the shadow root’s :host */ button {} /* button styles to apply to the document and to the shadow root */ } ``` This doesn’t solve the problem of cascade ordering, but I think it makes it more clear that you are affecting a scope. There’s a lot more to think through with a solution like this, but I have come around to agree that using layering _for_ access is problematic. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/909#issuecomment-1995152805 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/909/1995152805@github.com>
Received on Wednesday, 13 March 2024 17:47:10 UTC