-
Notifications
You must be signed in to change notification settings - Fork 917
Keyframes in scoped style should be private #731
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
@yyx990803 This seems to be more of a bugfix than a feature request to me.Thoughts? |
Had a test implementation, but it's more complicated than it seems - we need to properly parse all possible |
This is now properly implemented in the keyframes branch with one small caveat: the animation name detection is per |
i have some question。i write some animations like this: but the result has like this: the -wekit-keyframs has not scoped。how do i to deal it. |
What problem does this feature solve?
Define two keyframes with same name in different scoped style tag,
the latter will replace the former.
ComponentA
ComponentB
The stylesheet of these two components will be compiled like this:
What does the proposed API look like?
The result of compilation might be like this:
If there is no keyframes defination of current scope, The result might be like this case:
If there is no keyframes defination of any parent scope, The result might be like this case:
The text was updated successfully, but these errors were encountered: