Summary: | SVG graphics do not actually work in IMG tags or as background-image properties | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kay Summers <ksosjq102> | ||||
Component: | SVG | Assignee: | Nikolas Zimmermann <zimmermann> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | bdakin, dustin, hyatt, jeffschiller, mackyle, marco.barisione, mrowe | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Mac | ||||||
OS: | OS X 10.5 | ||||||
URL: | http://www.khiltd.com/svg.html | ||||||
Attachments: |
|
Description
Kay Summers
2008-03-30 15:59:45 PDT
Which of the examples do not work? They all appear correctly for me in Safari 3.1, and a recent nightly build. I'm not sure that all cases work in 3.1. (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. Created attachment 95637 [details]
Patch
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 (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. *** Bug 18227 has been marked as a duplicate of this bug. *** |