Skip to content

[css-cascade] What happens when you animate the all property? #1566

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
FremyCompany opened this issue Jun 26, 2017 · 4 comments
Closed

[css-cascade] What happens when you animate the all property? #1566

FremyCompany opened this issue Jun 26, 2017 · 4 comments
Labels
Closed Rejected as Invalid Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-cascade-4 Current Work css-transitions-2

Comments

@FremyCompany
Copy link
Contributor

FremyCompany commented Jun 26, 2017

[EDIT] See fixed test case here http://jsbin.com/dapiqopiqa/edit?html,css,output
(this works in Firefox but not Chrome)

Right now it doesn't work in any browser. Is that a bug? Should we spec it that way? (just curious)

https://wptest.center/#/hku8b7

div {
	color: red;
	animation: x 3s infinite alternate;
}
@keyframes x {
	to {
		all: initial !important; /*color:black*/
		font-weight: bold;
		background: yellow;
	}
}
@tabatkins
Copy link
Member

It's a bug. A bunch of properties initial values won't be animatable, but color certainly is (if you use color: initial instead, it works fine). all is just an uber-shorthand, so it should work as well as any other shorthand property.

(Btw, !important in a @keyframes makes that declaration invalid, per spec.)

@FremyCompany
Copy link
Contributor Author

@upsuper
Copy link
Member

upsuper commented Jun 27, 2017

FWIW, Firefox doesn't have bug on this. This works as expected in Firefox with this code: http://jsbin.com/dapiqopiqa/edit?html,css,output

@FremyCompany
Copy link
Contributor Author

@upsuper sounds good, thanks!

@fantasai fantasai added Closed Rejected as Invalid Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. labels Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed Rejected as Invalid Commenter Satisfied Commenter has indicated satisfaction with the resolution / edits. css-cascade-4 Current Work css-transitions-2
Projects
None yet
Development

No branches or pull requests

4 participants