WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
18228
SVG graphics do not actually work in IMG tags or as background-image properties
https://bugs.webkit.org/show_bug.cgi?id=18228
Summary
SVG graphics do not actually work in IMG tags or as background-image properties
Kay Summers
Reported
2008-03-30 15:59:45 PDT
According to this document:
http://docs.info.apple.com/article.html?artnum=307467
I should be able to display SVG graphics with simple IMG tags as well as in CSS properties such as background-image. In practice, this does not actually seem to work. A combined test case of several ways I've found SVG support to be broken is available here:
http://www.khiltd.com/svg.html
Attachments
Patch
(61.37 KB, patch)
2011-06-01 11:40 PDT
,
Nikolas Zimmermann
rwlbuis
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Rowe (bdash)
Comment 1
2008-03-30 21:11:41 PDT
Which of the examples do not work? They all appear correctly for me in Safari 3.1, and a recent nightly build.
Eric Seidel (no email)
Comment 2
2008-04-13 22:33:47 PDT
I'm not sure that all cases work in 3.1.
Marco Barisione
Comment 3
2008-08-11 02:25:58 PDT
(In reply to
comment #0
)
> A combined test case of several ways I've found SVG support to be broken is > available here:
Are you using WebKit GTK? It has problems with SVG images in <img> tags, see #19370.
Nikolas Zimmermann
Comment 4
2011-06-01 11:40:01 PDT
Created
attachment 95637
[details]
Patch
Rob Buis
Comment 5
2011-06-01 13:21:28 PDT
Comment on
attachment 95637
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=95637&action=review
LGTM
> LayoutTests/svg/custom/resources/spinner.svg:4 > +<svg xmlns="
http://www.w3.org/2000/svg
" xmlns:xlink="
http://www.w3.org/1999/xlink
" width="40px" height="40px" viewBox="0 0 50 50" preserveAspectRatio="xMinYMin">
preserveAspectRatio needed? And not the default value used?
> LayoutTests/svg/custom/resources/spinner.svg:10 > + <animateTransform attributeName="transform" type="rotate" values="30,25,25; 60,25,25; 90,25,25; 120,25,25; 150,25,25; 180,25,25; 210,25,25; 240,25,25; 270,25,25; 300,25,25; 330,25,25; 0,25,25;" dur="1s" repeatCount="indefinite" calcMode="discrete" />
Line can be removed
Nikolas Zimmermann
Comment 6
2011-06-01 13:24:50 PDT
(In reply to
comment #5
)
> (From update of
attachment 95637
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=95637&action=review
> > LGTM > > > LayoutTests/svg/custom/resources/spinner.svg:4 > > +<svg xmlns="
http://www.w3.org/2000/svg
" xmlns:xlink="
http://www.w3.org/1999/xlink
" width="40px" height="40px" viewBox="0 0 50 50" preserveAspectRatio="xMinYMin"> > > preserveAspectRatio needed? And not the default value used?
No, will remove it.
> > > LayoutTests/svg/custom/resources/spinner.svg:10 > > + <animateTransform attributeName="transform" type="rotate" values="30,25,25; 60,25,25; 90,25,25; 120,25,25; 150,25,25; 180,25,25; 210,25,25; 240,25,25; 270,25,25; 300,25,25; 330,25,25; 0,25,25;" dur="1s" repeatCount="indefinite" calcMode="discrete" /> > > Line can be removed
Fixed, landed in
r87840
.
Nikolas Zimmermann
Comment 7
2011-06-02 06:46:58 PDT
***
Bug 18227
has been marked as a duplicate of this bug. ***
Nikolas Zimmermann
Comment 8
2011-06-02 06:48:17 PDT
***
Bug 22986
has been marked as a duplicate of this bug. ***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug