RESOLVED MOVED 249218
SVG path with a dash renders incorrectly
https://bugs.webkit.org/show_bug.cgi?id=249218
Summary SVG path with a dash renders incorrectly
kari.pihkala
Reported 2022-12-13 05:50:19 PST
Created attachment 464022 [details] path-dash.svg An SVG path with a dash is rendered incorrectly in Safari. The result should look like a dashed rectangle. See the attached test case path-dash.svg and the screenshot safari-16.1.png. Tested on Safari 16.1 and Tech Preview Release 159 (Safari 16.4, WebKit 17615.1.12.130.1) (Intel and Apple Silicon Macs). Chrome 108 and Firefox 107 render the path correctly. I also tested on macOS 10.6.8 Snow Leopard Safari version 5.1.10 (6534.59.10) and it renders the path correctly (see the file safari-5.1.10.png). Safari 10.1.2 on macOS 10.12.6 Sierra doesn't render the path correctly, so it seems that the bug appeared somewhere between those two versions..
Attachments
path-dash.svg (288 bytes, image/svg+xml)
2022-12-13 05:50 PST, kari.pihkala
no flags
safari-16.1.png (25.11 KB, image/png)
2022-12-13 05:50 PST, kari.pihkala
no flags
safari-5.1.10.png (16.70 KB, image/png)
2022-12-13 05:51 PST, kari.pihkala
no flags
kari.pihkala
Comment 1 2022-12-13 05:50:50 PST
Created attachment 464023 [details] safari-16.1.png
kari.pihkala
Comment 2 2022-12-13 05:51:18 PST
Created attachment 464024 [details] safari-5.1.10.png
Alexey Proskuryakov
Comment 3 2022-12-14 11:59:47 PST
Curiously, when I Cmd+click on the test link, and switch to the new tab, it looks broken for a second, and then repaints (mostly) correctly. There is still a difference in that corners are rounded.
Simon Fraser (smfr)
Comment 4 2022-12-14 13:13:46 PST
That sounds like accelerated drawing vs non-accelerated drawing.
Radar WebKit Bug Importer
Comment 5 2022-12-14 13:14:00 PST
Simon Fraser (smfr)
Comment 6 2022-12-14 13:17:17 PST
Bug is in a component below WebKit.
Note You need to log in before you can comment on or make changes to this bug.