NEW 104496
SVG animations do not support dynamic condition targets
https://bugs.webkit.org/show_bug.cgi?id=104496
Summary SVG animations do not support dynamic condition targets
Philip Rogers
Reported 2012-12-09 14:41:43 PST
Created attachment 178440 [details] Testcase Consider this example: <rect id="rectRed" width="100" height="100" x="0" y="0" fill="red"/> <rect id="rectGreen" width="100" height="100" x="100" y="0" fill="green"/> <set id="set" attributeName="x" to="0" xlink:href="#rectRed" begin="click"/> <script> var animation = document.getElementById('set'); animation.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', '#rectGreen'); </script> When we move the animation target from the red rect to the green rect, the click animation condition should move too but it does not. This currently works in Firefox and Opera. A related issue is detecting dynamic id changes such as if "blueRect.click" was used as the begin condition and blueRect's id was changed. One way to fix these issues would be to add condition targets to our target tracking infrastructure in SVGDocumentExtensions.
Attachments
Testcase (913 bytes, text/html)
2012-12-09 14:41 PST, Philip Rogers
no flags
Ahmad Saleem
Comment 1 2022-07-10 11:37:22 PDT
I am able to reproduce this bug in Safari 15.5 on macOS 12.4 and Safari Technical Preview 148 using attached test case. As per instruction, upon clicking "green" box, does not animate over to red box. Although, it does for other browsers such as Chrome Canary 105 and Firefox Nightly 104. If I am testing it incorrectly, please retest accordingly. I tested using private window. Thanks!
Brent Fulgham
Comment 2 2022-07-15 15:50:28 PDT
Works in Chrome and Firefox, fails in Safari.
Radar WebKit Bug Importer
Comment 3 2022-07-15 15:50:40 PDT
Note You need to log in before you can comment on or make changes to this bug.