Closed
Bug 649400
Opened 14 years ago
Closed 14 years ago
[css3-animations] should animate each property across the keyframes it's present in
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla5
Tracking | Status | |
---|---|---|
firefox5 | --- | fixed |
People
(Reporter: dbaron, Assigned: dbaron)
Details
(Keywords: dev-doc-complete)
Attachments
(2 files)
23.25 KB,
patch
|
bzbarsky
:
review+
sayrer
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
7.45 KB,
patch
|
bzbarsky
:
review+
sayrer
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
It turns out I misextrapolated what the css3-animations spec meant to say about how keyframes work: what WebKit does, I think, is that the animation animates each property across all the keyframes that it's present in (and using the initial values at 0% and 100% if needed)... as though the other keyframes weren't there. So any property in the animation is present throughout the animation.
This behavior does make more sense for authors; it just didn't occur to me while reading the spec that it was what the spec might have meant (perhaps partly because my understanding of what the spec meant evolved over time, after reading it, as I tested things).
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → dbaron
Priority: -- → P3
Target Milestone: --- → mozilla6
Assignee | ||
Comment 1•14 years ago
|
||
This fixes it.
In the new model, it wasn't clear to me how to handle inability to interpolate between some of the values. The easiest thing to implement was to drop the entire property from the animation (even if there are some value pairs that we can interpolate between). None of the other options felt particularly sensible with this model, and this was the easiest to implement.
I tested that the test fails without the patch and passes with it.
Attachment #527711 -
Flags: review?(bzbarsky)
Comment 2•14 years ago
|
||
Comment on attachment 527711 [details] [diff] [review]
patch 2: main patch
r=me
Attachment #527711 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Updated•14 years ago
|
Attachment #527711 -
Attachment description: patch → patch 2: main patch
Assignee | ||
Comment 3•14 years ago
|
||
I forgot I had this patch underneath the other one. This fixes some index names that were getting a little out-of-hand.
Attachment #527724 -
Flags: review?(bzbarsky)
Comment 4•14 years ago
|
||
Comment on attachment 527724 [details] [diff] [review]
patch 1: make index names clearer
r=me
Attachment #527724 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 5•14 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/bbec48c9edae
https://hg.mozilla.org/mozilla-central/rev/f99ba4e6aceb
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Are we going to put this on Aurora?
Updated•14 years ago
|
Keywords: dev-doc-needed
Comment 7•14 years ago
|
||
I'm documenting this as a change that will take place in Gecko 6.0; if it gets pulled into Gecko 5.0, someone please let me know.
Comment 8•14 years ago
|
||
I've updated the documentation here:
https://developer.mozilla.org/index.php?title=en/CSS/%40keyframes#When_properties_are_left_out_of_some_keyframes
And mentioned on Firefox 6 for developers.
Keywords: dev-doc-needed → dev-doc-complete
Assignee | ||
Comment 9•14 years ago
|
||
Comment on attachment 527724 [details] [diff] [review]
patch 1: make index names clearer
I'd like to get this in to Aurora -- it's pretty silly to ship animations and then change the behavior substantially in the next release when we could avoid doing so.
This code doesn't affect anything outside of animations (so if we turn off animations, it all gets disabled).
Attachment #527724 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 10•14 years ago
|
||
Comment on attachment 527711 [details] [diff] [review]
patch 2: main patch
... and same for this patch.
Attachment #527711 -
Flags: approval-mozilla-aurora?
Updated•14 years ago
|
Attachment #527711 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•14 years ago
|
Attachment #527724 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 11•14 years ago
|
||
I have updated the documentation to reflect that this has been accepted for Aurora.
Assignee | ||
Comment 12•14 years ago
|
||
https://hg.mozilla.org/mozilla-aurora/rev/34fe88af0358
https://hg.mozilla.org/mozilla-aurora/rev/d2eb193a0037
status-firefox5:
--- → fixed
Target Milestone: mozilla6 → mozilla5
Comment 13•13 years ago
|
||
You should know that Safari and Chrome differ in their treatment of "missing properties". Chrome tries to interpolate, Safari uses the intrinsic properties. I think a strict reading of the spec is that the Safari behavior (and the "pre-bug-fix" Firefox behavior) is the correct one, although it makes less sense.
You need to log in
before you can comment on or make changes to this bug.
Description
•