-
Notifications
You must be signed in to change notification settings - Fork 711
[css-shadow-parts-1] part should be a superglobal in the HTML spec #3424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I arrived at this draft from a few links about The path I took to get here:
I'm confused. I want to compose CSS classes :-\ |
@NullVoxPopuli Sorry, I don't know why this is listed as an alternative solution (I am not at all familiar with postcss-apply). Please take that up with the authors of the postcss-apply doc. |
The reason is that my blog post about abandoning @apply says precisely that. ^_^ The motivating use-case for @apply was passing bags of properties into custom elements, so you didn't have to reinvent all of CSS as custom properties just to allow arbitrary styling of something inside a shadow tree. That use-case was replaced by ::part(). The more general use-case of using @apply to compose classes, however, isn't addressed by this. (And @apply is still bad for that, for all the reasons I gave in my blog post. We probably want to eventually do @extend to address that case.) |
@fergald any ETA on this? This feature has shipped reportedly so this seems overdue. If it's superglobal it should be in DOM probably. |
spec
Update the DOM spec.
The text was updated successfully, but these errors were encountered: