Linear gradients in SVG sprites are not displayed
Reported by
p4ul...@googlemail.com,
Aug 2 2017
|
||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0 Example URL: Steps to reproduce the problem: 1. Take an SVG with a gradient defined inside of it. (attached: store_badge_android.svg) 2. Put it in a sprite SVG (attached: sprite.svg) 3. Include that sprite SVG in a HTML site via a use statement. (attached: index.html) What is the expected behavior? The expected behavior is, that the gradient of the Play Store should be shown as in the image I have included in the index.html as reference, which works perfectly fine. It works fine in Firefox. What went wrong? The gradient is not shown. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 60.0.3112.78 Channel: stable OS Version: 6.1 (Windows 7) Flash Version: Shockwave Flash 26.0 r0 From the developer console inspection it looks like the '<defs>' tag is not even present. If the SVG sprite is included inside the HTML document, it works completely fine. I guess this makes this a location resolution problem.
,
Aug 3 2017
Can repro, but not sure what the culprit is from first glance. Leaving to SVG triage.
,
Aug 3 2017
This is quite likely a tree scope issue (looking up the 'id' using the wrong one.) IIRC, we're in a situation where fixing one case will break another (and vice versa), because of when element references are resolved. I'd suspect that we have a dupe of this issue somewhere, but I didn't look for one.
,
Aug 4 2017
,
Nov 13 2017
Issue 784083 has been merged into this issue.
,
Nov 13 2017
,
Sep 10
,
Jan 6
According to the Chrome developer tools, the defs are completely missing from the shadow DOM. See attached screenshot from the developer tools. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by p4ul...@googlemail.com
, Aug 2 201781.5 KB
81.5 KB View Download