Closed
Bug 944039
Opened 11 years ago
Closed 11 years ago
SVG CSS-background loaded through a data URI not working
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
INVALID
People
(Reporter: me, Unassigned)
Details
STR: http://jsfiddle.net/estelle/SJjJb/ Above fiddle works in Chrome, but not in Nightly.
Reporter | ||
Updated•11 years ago
|
Version: unspecified → Trunk
Comment 1•11 years ago
|
||
You need to use a valid URL. It would look something like this. data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2710%27%20height%3D%2710%27%3E%3ClinearGradient%20id%3D%27gradient%27%3E%3Cstop%20offset%3D%2710%25%27%20stop-color%3D%27%23F00%27%2F%3E%3Cstop%20offset%3D%2790%25%27%20stop-color%3D%27%23fcc%27%2F%3E%20%3C%2FlinearGradient%3E%3Crect%20fill%3D%27url(%23gradient)%27%20x%3D%270%27%20y%3D%270%27%20width%3D%27100%25%27%20height%3D%27100%25%27%2F%3E%3C%2Fsvg%3E Chrome's behaviour is a bug
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 2•11 years ago
|
||
Alright, thanks for pointing out a solution too.
You need to log in
before you can comment on or make changes to this bug.
Description
•