Closed Bug 641303 Opened 15 years ago Closed 15 years ago

SVG in data uri rendered differently to relative linked svg

Categories

(Core :: SVG, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 243917

People

(Reporter: emil.langrock, Unassigned)

Details

Attachments

(7 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.133 Safari/534.16 Build Identifier: Mozilla/5.0 (X11; Linux x86_64; rv:2.0) Gecko/20110310 Firefox/4.0 Iceweasel/4.0 The output of the renderer differs between svg that it is linked using an external file and embedded using data uris. I noticed that mozilla also renders it wrong when using an external file, but the data uri version is completely unreadable. I will attach a tarball with example files and the rendering that i see. Reproducible: Always
Maybe duplicate of Bug 243917
Can you upload individual files rather than a tarball please?
Attached image SVG reference rendering
Attached file HTML which uses external svg (obsolete) —
Attachment #519027 - Attachment is obsolete: true
You're using things like |fill: url(#green2grey)|. This resolves the url relative to the data URI, so you get something equivalent to: |fill: url(data:.....#green2grey)| which is of course not valid SVG, and can't render, if the "#green2grey" part is treated as part of the data. Which it is with data: in Gecko. There is an existing bug on this; fixing it requires redefining the data: spec a bit, last I checked.
Whiteboard: DUPEME
(In reply to comment #11) > There is an existing bug on this Yup -- duplicate of Bug 243917, as Alice0775 suggested in Comment 2.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: