Bug 252133

Summary: Using LinearGradient fill on <path> shows line artefact above element bounding box
Product: WebKit Reporter: Alexey <x-alex-95+bugzilla>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, sabouhallawa, simon.fraser, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: iPhone / iPad   
OS: Unspecified   
Attachments:
Description Flags
Example screenshot 1
none
Example screenshot 2
none
Example screenshot 3: <img> embed
none
Example file none

Description Alexey 2023-02-12 07:41:00 PST
Created attachment 464959 [details]
Example screenshot 1

<path> elements which are using LinearGradient as fill occasionally display line artefacts at the top of their bounding box. The issue occurs when scaling the svg, either when viewed on its own through zoom, or when using an <img> element on a webpage. The issue seems to be triggered on certain scaling levels, which are different for each object: in practice this manifests as lines flickering as you zoom in. 

To the best of my knowledge and testing, desktop Safari is unaffected and does not reproduce this behavior.

Attached are several example screenshots as well as a sample <svg>.
Comment 1 Alexey 2023-02-12 07:42:06 PST
Created attachment 464960 [details]
Example screenshot 2
Comment 2 Alexey 2023-02-12 07:42:27 PST
Created attachment 464961 [details]
Example screenshot 3: <img> embed
Comment 3 Alexey 2023-02-12 07:43:16 PST
Created attachment 464962 [details]
Example file
Comment 4 Alexey Proskuryakov 2023-02-13 10:05:04 PST
We had a number of reports with similar symptoms, which are believed to be an issue below WebKit (cf. bug 248003, bug 245652). CC'ing Simon to confirm.
Comment 5 Radar WebKit Bug Importer 2023-02-19 07:41:16 PST
<rdar://problem/105647929>
Comment 6 Simon Fraser (smfr) 2023-02-20 11:02:24 PST

*** This bug has been marked as a duplicate of bug 248003 ***