New issue
Advanced search Search tips

Issue 751733 link

Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , All , Mac
Pri: 2
Type: Bug

Blocked on:
issue 109212



Sign in to add a comment

Linear gradients in SVG sprites are not displayed

Reported by p4ul...@googlemail.com, Aug 2 2017

Issue description

UserAgent: 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.
 
store_badge_android.svg
5.5 KB Download
sprite.svg
5.3 KB Download
index.html
184 bytes View Download
Remeber to run the index.html from a webserver. Else the inclusion of the SVG does not work.

I have attached a screenshot of the problem and how it is displayed in Chrome.
Do not mind the sizes, please.
screenshot_svg_problem.PNG
81.5 KB View Download
Components: -Blink Blink>SVG
Labels: OS-Linux OS-Mac OS-All
Status: Untriaged (was: Unconfirmed)
Can repro, but not sure what the culprit is from first glance. Leaving to SVG triage.

Comment 3 by f...@opera.com, Aug 3 2017

Status: Available (was: Untriaged)
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.
Labels: PaintTeamTriaged-20170803 BugSource-User

Comment 5 by f...@opera.com, Nov 13 2017

 Issue 784083  has been merged into this issue.

Comment 6 by f...@opera.com, Nov 13 2017

Blockedon: 769774 109212
Labels: Hotlist-Interop
Blockedon: -769774
According to the Chrome developer tools, the defs are completely missing from the shadow DOM. See attached screenshot from the developer tools.
missing-defs.png
35.1 KB View Download

Sign in to add a comment