NEW 78480
CSS transition of text-shadow not smooth from CSS animation
https://bugs.webkit.org/show_bug.cgi?id=78480
Summary CSS transition of text-shadow not smooth from CSS animation
bugmenot
Reported 2012-02-13 03:06:08 PST
Created attachment 126743 [details] testcase #1 STR: 1. Hover pointer on text and watch the text-shadow values transition for 2 seconds. 2. Keep hovering for another 2 seconds when the animation should begin. 3. See text-shadow disappear. 4. Unhover pointer and see text-shadow transition back from the values it was before it disappeared Expected results: text-shadow should animate Actual results: text-shadow vanishes
Attachments
testcase #1 (1.64 KB, text/html)
2012-02-13 03:06 PST, bugmenot
no flags
testcase #1 corrected (1.70 KB, text/html)
2012-02-13 16:36 PST, bugmenot
no flags
Test case using left: property (435 bytes, text/html)
2012-02-15 19:54 PST, Shane Stephens
no flags
bugmenot
Comment 1 2012-02-13 16:36:49 PST
Created attachment 126864 [details] testcase #1 corrected First version of the testcase omitted a colour value in the animation of text-colour. This version includes it. So #3 in the steps to reproduce no longer happens, but #4 is still apparent in that the shadow doesn't transition from wherever it is in the animation when unhovering, so I'm morphing this bug to deal with that issue.
bugmenot
Comment 2 2012-02-13 16:40:53 PST
(In reply to comment #1) > First version of the testcase omitted a colour value in the animation of text-shadow. Fixing my first sentence in that comment, it erroneously said text-colour.
Simon Fraser (smfr)
Comment 3 2012-02-13 18:59:01 PST
Does this happen with a simple property like 'left', or just text-shadow? The testcase is rather complex.
Shane Stephens
Comment 4 2012-02-15 19:54:06 PST
Created attachment 127300 [details] Test case using left: property
Shane Stephens
Comment 5 2012-02-15 19:54:46 PST
Confirmed that this behavior occurs when animating left: property as well.
Simon Fraser (smfr)
Comment 6 2012-02-16 08:58:42 PST
I think this is correct behavior. When you unhover, the animation is immediately removed. The element snaps to its unanimated (but hovered) position, then transitions back from the hovered to the unhoverted state.
Shane Stephens
Comment 7 2012-02-16 13:13:28 PST
The correct behavior isn't specified and probably should be, but I don't think it's clear that the animation should be removed before the computed style for the from state of the transition is measured.
Simon Fraser (smfr)
Comment 8 2012-02-16 17:14:24 PST
There was some recent discussion on the interaction of transitions and animations. However, since animations override almost everything else, I think the current behavior is reasonable.
Shane Stephens
Comment 9 2012-02-16 17:52:54 PST
The problem with the current behavior is that it implies the following steps, specific to the case where there's an animation change as part of a computed style change. (1) computed style changes (2) animation portion of computed style is removed (3) computed style is measured (transition from style) (4) remaining parts of computed style change are applied (5) computed style is measured again (transition to style) Why is the change application split across two different steps? Why is there a special additional measurement of computed style just because of the presence of the animation?
Simon Fraser (smfr)
Comment 10 2012-02-16 18:01:32 PST
The spec should really define a behavior here. See the unresolved thread starting at <http://lists.w3.org/Archives/Public/www-style/2012Jan/1274.html>.
Shane Stephens
Comment 11 2012-02-16 18:18:24 PST
Agreed that we need to wait for the correct behavior to be specified before taking further action on this bug.
Note You need to log in before you can comment on or make changes to this bug.