Bug 216363

Summary: REGRESSION(r258464): SVG use element doesn't render if it references a subsequent element after a style resolution
Product: WebKit Reporter: Leon <leon>
Component: SVGAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, leon, rniwa, sabouhallawa, simon.fraser, tristan.fraipont, webkit-bug-importer, zalan, zimmermann
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: All   
OS: macOS 10.15   
See Also: https://bugs.webkit.org/show_bug.cgi?id=208981
Attachments:
Description Flags
Reproducible example
none
Screen recording
none
Modified example
none
Reduction none

Description Leon 2020-09-10 07:33:25 PDT
Created attachment 408437 [details]
Reproducible example

In SVG, when the <def> is below the <use> the rendering is intermittent.

This affects Safari 13 but not Safari 12.

Please find attached a reproducible example and a screen recording showing the issue.
Comment 1 Leon 2020-09-10 07:34:34 PDT
Created attachment 408439 [details]
Screen recording
Comment 2 Radar WebKit Bug Importer 2020-09-10 09:22:37 PDT
<rdar://problem/68646948>
Comment 3 Ahmad Saleem 2022-08-12 00:17:28 PDT
I am able to reproduce this bug in Safari Technical Preview 151 and Safari 15.6 on macOS 12.5 using attached Reproducible example, it shows sometime partial text from bottom up and then on refresh show some more and some time does not show at all and on refresh, it will show partial half in one go.

In case of other browsers (Firefox Nightly 105 and Chrome Canary 106), this example show all the text in one go in arc shape and does not have same partial text rendering issue as Safari. Just wanted to share update. Thanks!
Comment 4 Ryosuke Niwa 2023-05-13 11:57:47 PDT
Created attachment 466344 [details]
Modified example
Comment 5 Ryosuke Niwa 2023-05-13 12:51:26 PDT
Created attachment 466346 [details]
Reduction
Comment 6 Ryosuke Niwa 2023-05-13 13:34:46 PDT
Pull request: https://github.com/WebKit/WebKit/pull/13857
Comment 7 EWS 2023-05-15 16:03:28 PDT
Committed 264085@main (a6a7aa5aca7b): <https://commits.webkit.org/264085@main>

Reviewed commits have been landed. Closing PR #13857 and removing active labels.
Comment 8 Said Abou-Hallawa 2023-05-30 11:10:33 PDT
*** Bug 219531 has been marked as a duplicate of this bug. ***