Skip to content

[css-animations] Custom properties should appear in getKeyframes #5126

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

Open
andruud opened this issue May 28, 2020 · 4 comments
Open

[css-animations] Custom properties should appear in getKeyframes #5126

andruud opened this issue May 28, 2020 · 4 comments
Labels
css-animations-1 Current Work

Comments

@andruud
Copy link
Member

andruud commented May 28, 2020

We currently have a WPT that verify that custom properties do not appear in getKeyframes' result. (KeyframeEffect-getKeyframes.tentative.html).

At a quick glance, this does not appear to have any basis in css-animations or web-animations. I can also not think of any good reason to exclude them. We should clarify that custom properties are not somehow removed from the computed keyframe, and change the WPT.

@birtles birtles added the css-animations-1 Current Work label May 29, 2020
@birtles
Copy link
Contributor

birtles commented May 29, 2020

As best I can recall, that test comes about because keyframes from CSS animations (unlike Web Animations) contain only computed properties and hence all var() references are resolved.

At the time (and now too, unfortunately), Firefox didn't support registered custom properties (Mozilla bug) so there was no need to keep custom properties around. With registered custom properties, it definitely makes sense to keep them around.

@andruud
Copy link
Member Author

andruud commented Jul 18, 2020

Is there a resolution on this that needs to be "overturned", or can we just make this change?

@birtles
Copy link
Contributor

birtles commented Jul 21, 2020

If all the vendors agree, we can just make this change.

@andruud
Copy link
Member Author

andruud commented Jul 22, 2020

@smfr What do you think? Can we include custom properties in the result of getKeyframes? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-animations-1 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants