User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
Build ID: 20130307023931
Steps to reproduce:
Wrote some CSS with !important. Tried to animate those properties using @keyframes CSS animation.
See example here:
2nd box doesn't animate, but first one does, due to !important added to properties for 2nd box.
The animation does not occur.
I'm not sure. It would seem that Firefox's behaviour is correct, but none of the other browsers I've tested respond this way. They all continue to animate both boxes, regardless.
I've filed a bug report with Chrome here:
In other words, I'm unsure as to which is the incorrect behaviour. Should !important override an animation on the same properties? Is this similar to the fact that a pseudo-class is overridden by !important? For example:
Notice the width of the input should increase on focus, but it doesn't because of the !important declaration. I'm not sure if @keyframes should be treated the same way. It would be nice to see all browsers render this the same way, whatever is the correct behaviour.
We're still trying to agree on a standard behavior here. I changed the Firefox behavior intentionally at some point because it seemed like this was the behavior we wanted, though.
It looks like this issue has been resolved. Latest Firefox now exhibits same behaviour as Chrome. Should this be marked "resolved"?
That sounds odd. Might you have enabled off main thread compositing and off main thread animations somehow (triggering bug 847287)?
Oh ****... My bad... I was looking at the wrong demo. Nevermind, the behaviour is still the same.
The working group ended up deciding to go with the current Firefox behavior:
... which makes this bug invalid, since the current behavior is correct.
Cool, thanks for the update. It would be nice if the other browsers addressed this, since their behaviour is therefore incorrect.