Issue metadata
Sign in to add a comment
|
Certain SVG Images Do Not Render with Proper Colors
Reported by
mobilesl...@gmail.com,
Nov 16 2017
|
||||||||||||||||||||||
Issue descriptionUserAgent: 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.
,
Nov 16 2017
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.
,
Nov 16 2017
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.
,
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.)
,
Nov 16 2017
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 |
|||||||||||||||||||||||
Comment 1 by manoranj...@chromium.org
, Nov 16 2017