Skip to content
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

[css-shadow-parts-1] The part pseudo-element should support animations #5917

Closed
gregwhitworth opened this issue Feb 1, 2021 · 2 comments
Closed
Assignees

Comments

@gregwhitworth
Copy link
Contributor

In working on a proposal to potentially unlock checkbox/radio styling I utilized a web component to mimic my pseudo elements. One example I wanted to show was animation of the checkmark itself but this was blocked due to part() not being animatable while other pseudo-elements are. Here is a reduction of the issue:

https://jsbin.com/rofuqawuji/edit?html,css,js,console,output

cc: @tabatkins since we already discussed this issue.

@gregwhitworth
Copy link
Contributor Author

I'm going to take a glance at the spec and see if this is something I can land a PR for.

@tabatkins
Copy link
Member

This isn't a problem with ::part(); there's nothing about it that stops things from animating, and no edit to the shadow-parts spec will fix it. This is a problem with Shadow DOM and CSS's name-defining constructs, and the solution is outlined in #1995 (I've just updated the original post to take into account the feedback and compromises from later in the thread, so there's no need to read past the original post unless you want context.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@tabatkins @gregwhitworth and others