| Summary: | The style.color is used to fill the SVG shapes when the last repeated gradient resource is deleted | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | wildfire0304 <fengbo> | ||||
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED CONFIGURATION CHANGED | ||||||
| Severity: | Normal | CC: | ahmad.saleem792, sabouhallawa, simon.fraser, webkit-bug-importer, zimmermann | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 13 | ||||||
| Hardware: | iPhone / iPad | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
|
Description
wildfire0304
2020-05-07 20:41:40 PDT
<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor" class='.icon'>
<defs>
<linearGradient id="linearGradient" x1=0 y1=0 x2=1 y2=1>
<stop offset="0" stop-color="#f50000"></stop>
<stop offset="1" stop-color="#00bfff"></stop>
</linearGradient>
</defs>
<circle cx=12 cy=12 r=6 fill="url(#wildfire0304)"></circle>
</svg>
ID `#linearGradient` will appear more than two times, and then disappear in this case
<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor" class='.icon'>
<defs>
<linearGradient id="linearGradient" x1=0 y1=0 x2=1 y2=1>
<stop offset="0" stop-color="#f50000"></stop>
<stop offset="1" stop-color="#00bfff"></stop>
</linearGradient>
</defs>
<circle cx=12 cy=12 r=6 fill="url(#linearGradient)"></circle>
</svg>
ID `#linearGradient` will appear more than two times, and then disappear in this case
(In reply to wildfire0304 from comment #1) > <svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor" > class='.icon'> > <defs> > <linearGradient id="linearGradient" x1=0 y1=0 x2=1 y2=1> > <stop offset="0" stop-color="#f50000"></stop> > <stop offset="1" stop-color="#00bfff"></stop> > </linearGradient> > </defs> > <circle cx=12 cy=12 r=6 fill="url(#wildfire0304)"></circle> > </svg> > > ID `#linearGradient` will appear more than two times, and then disappear in > this case can't delete this comments, you can see the next Created attachment 399048 [details]
test case (should show a green rectangle)
I am not able to reproduce this bug in Safari Technology Preview 160 while it is reproducible in Safari 16.2. STP show "green" rectangle similar to Chrome Canary 110 while Safari 16.2 show "red" rectangle. Marking this as "RESOLVED CONFIGURATION CHANGED". |