Skip to content

css-animations: Does animation-duration support calc()? #1238

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

Closed
praveenpuglia opened this issue Apr 18, 2017 · 4 comments
Closed

css-animations: Does animation-duration support calc()? #1238

praveenpuglia opened this issue Apr 18, 2017 · 4 comments

Comments

@praveenpuglia
Copy link
Contributor

https://drafts.csswg.org/css-animations/#animation-duration

From the spec, it's not clear whether calc() function can be used for animation duration or not. At the moment, I see Chrome supporting it but firefox doesn't.

This clearly has advantage in conjunction with CSS custom properties. Here's one such example.
https://codepen.io/praveenpuglia/pen/RVWKew/

@praveenpuglia praveenpuglia changed the title css-animations css-animations: Does animation-duration support calc()? Apr 18, 2017
@Loirooriol
Copy link
Contributor

From CSS values,

The calc() expression represents the result of the mathematical calculation it contains, using standard operator precedence rules. It can be used wherever <length>, <frequency>, <angle>, <time>, <percentage>, <number>, or <integer> values are allowed.

@birtles birtles added the css-animations-1 Current Work label Apr 18, 2017
@praveenpuglia
Copy link
Contributor Author

That means that I have to see if a bug already exists in Firefox and if not, raise one.

@fantasai
Copy link
Collaborator

Closing as invalid then? :) Reopen if there's an actual spec bug.

@birtles
Copy link
Contributor

birtles commented May 7, 2017

For the record, the Firefox bug for this is bug 956573.

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

4 participants