Re: [WICG/webcomponents] "open-stylable" Shadow Roots (#909)

@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