New issue
Advanced search Search tips

Issue 786031 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 620054
Owner: ----
Closed: Nov 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Certain SVG Images Do Not Render with Proper Colors

Reported by mobilesl...@gmail.com, Nov 16 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:
1. Go to https://jsfiddle.net/qepbdhz9/
2. The "output" pane of this fiddle should be empty if the problem is present, however, inspecting the output field shows that its trying to render the SVG file

What is the expected behavior?
The SVG should render in a dark red/maroon color.

What went wrong?
The SVG seems to be fully transparent, instead of picking up on the maroon-color encoding. 

Did this work before? Yes Unknown

Does this work in other browsers? Yes

Chrome version: 62.0.3202.94  Channel: stable
OS Version: OS X 10.13.1
Flash Version: 

Seems to only happen when the SVG (attached or see JSFiddle link in steps to reproduce) is referenced via an <img> tag "src" attribute. When I open the file in a new tab, Chrome renders it correctly.
 
icon-services.svg
3.8 KB Download
Labels: Needs-Bisect Needs-Triage-M62

Comment 2 by f...@opera.com, Nov 16 2017

Mergedinto: 620054
Status: Duplicate (was: Unconfirmed)
The <image> in the SVG has a data URL which has an invalid MIME type - "img/png" (correct would be "image/png".) Because of reasons (see the duplicate bug for details if you're really interested) loading this image fails if it's referenced via an <img> =/.

So, it's a bug (IMHO), but you can fix it by fixing the MIME type to replacing the "img/png" with "image/png". Hope that helps.
Got it, interesting. That does help! I think this SVG was generated via an export from some program (Adobe Illustrator, maybe?), so it may be a larger issue with Illustrator.

Comment 4 by f...@opera.com, Nov 16 2017

Ok, that is certainly interesting if that is the case. This particular MIME (mis)type has shown up several times, so it certainly seems plausible. If you happen to find any evidence of that, then please post that in issue 620054. (I'll try and see if can find any references to that MIME type myself.)
Will do--I'm talking with the graphic designer that created the export now to see if Illustrator still does that, or if its an old issue.

Sign in to add a comment