Re: [csswg-drafts] [css-shadow-parts] Limited ::theme selector (#3507)

@runarberg You raise an interesting suggestion.  At Red Hat, we've approached this in our web component project using data attributes as a means of opting into "variants".

```
<pfe-accordion pfe-variant="earth">
```

Perhaps what you describe could be a new idea under a different name such as `:variant`?  I see your proposal as a little different than one of the original goals of `::theme`, which was to provide a means for cascading styles into shadow DOM (including nested shadow DOMs) without having to use custom properties.

-- 
GitHub Notification of comment by castastrophe
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3507#issuecomment-614657578 using your GitHub account

Received on Thursday, 16 April 2020 13:36:48 UTC