SVG animations based on mouse events getting confused about over/out
Reported by
paul.leb...@gmail.com,
Jul 10 2017
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 Steps to reproduce the problem: Try the following test case. https://jsfiddle.net/z2douzf0/ <svg> <circle cx="150" cy="75" r="50" fill="red"> <set attributeName="fill" to="green" begin="mouseover"/> <set attributeName="fill" to="red" begin="mouseout"/> </circle> </svg> What is the expected behavior? Circle turns green when you mouse over it, and reverts to red when you leave. What went wrong? Works for the first mouseover/mousout. But does nothing for the next mouseover, and from then on has inverted behaviour. It goes green on mouseout and red on mouseover. Did this work before? N/A Does this work in other browsers? Yes Chrome version: 59.0.3071.115 Channel: stable OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version:
,
Jul 10 2017
,
Jul 10 2017
I can only guess really... application order issues is what these types of things tend to be, but this is a bit too weird even for that... I wonder if just one <set> with begin=mouseover and end=mouseout would work better here.
,
Jul 10 2017
Yes. The end variant works fine.
<svg>
<circle cx="150" cy="75" r="50" fill="red">
<set attributeName="fill" to="green" begin="mouseover" end="mouseout"/>
</circle>
</svg>
,
Jul 10 2017
It's an old bug.
,
Jul 11
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jul 11
Retested. This is still broken.
,
Jul 11
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by schenney@chromium.org
, Jul 10 2017Labels: OS-Android OS-Chrome OS-Linux OS-Mac
Owner: schenney@chromium.org
Status: Assigned (was: Unconfirmed)