Closed
Bug 1145100
Opened 10 years ago
Closed 10 years ago
specific SVG image not loading within HTML5, while it does show without 'wrapping'
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mozilla, Unassigned)
Details
Attachments
(1 file)
412 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150317004004
Steps to reproduce:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>image ref bug?</title>
</head>
<body>
<svg width="100%" height="100%" preserveAspectRatio="xMidYMid" overflow="visible" viewBox="0,0,100,100">
<image id="crown" xlink:href="http://upload.wikimedia.org/wikipedia/commons/2/25/Simple_gold_crown.svg" width="10" height="10" />
</svg>
</body>
</html>
Actual results:
image not shown
Devtools knows where it is
calling "View Image" from context menu in browser, forwards you to the URL, and then it does show
Expected results:
show the image
Works on Chrome.
If the bug is somewhere else (my HTML, or the SVG I'm pulling in) I'd still like to know, so I can fix it or try to have it fixed.
Comment 2•10 years ago
|
||
Updated•10 years ago
|
Attachment #8580038 -
Attachment mime type: text/plain → text/html
Comment 3•10 years ago
|
||
The part of the image that you are viewing is white. Try making the width/height bigger or give the SVG image itself a viewBox so it resizes. Best raise a Chrome bug as what we're doing seems correct.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Chrome folks seem to not agree :-(
https://code.google.com/p/chromium/issues/detail?id=468897
You need to log in
before you can comment on or make changes to this bug.
Description
•