| Summary: | [svg] Multiple fragments of animation drawn in parallel rather than start to end like Chrome & Firefox | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> | ||||
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED MOVED | ||||||
| Severity: | Normal | CC: | 1wheel, bfulgham, dino, graouts, graouts, sabouhallawa, webkit-bug-importer, zimmermann | ||||
| Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||
| Version: | Safari Technology Preview | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| URL: | https://codepen.io/justinresources/pen/ExOWzNv | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=259415 | ||||||
| Attachments: |
|
||||||
|
Description
Ahmad Saleem
2023-07-05 12:20:41 PDT
Retitling to clarify this doesn't have anything to do with SVG Animations since CSS Animations are used here. However, my bet is that this is purely an SVG issue with how we compute stroke-dashoffset here, but it could technically be an issue with how we animate that property. Created attachment 467031 [details]
Reduction
This is strictly an SVG issue, see the reduction attached which just uses a static stroke-dashoffset value. I expect this is some odd interaction with the pathlength attribute. (In reply to Antoine Quint from comment #4) > This is strictly an SVG issue, see the reduction attached which just uses a > static stroke-dashoffset value. I expect this is some odd interaction with > the pathlength attribute. Thanks @Antoine, apologise, I didn't go much in details or investigate, I just thought to capture it and look into later. So appreciate your help on deep analysis. I'm starting to think this is a CG bug or limitation, as the issue goes away if I remove one of the draw commands, which makes the number of segments in PathStream::applySegments() go from 257 to 256 and magically everything is fine. Interestingly the MDN demo for pathLength doesn't render at all in Safari: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/pathLength. *** Bug 259415 has been marked as a duplicate of this bug. *** The fix for this issue needs to be made outside of the WebKit Open Source project. Resolving as MOVED. This work is being tracked under <rdar://problem/113436247> |