Bug 17552

Summary: SVG images not working as background-image
Product: WebKit Reporter: Sjoerd Tieleman (tieleman) <sjoerd>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: nickshanks, webkit
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Example HTML file
none
Example SVG file
none
standalone test case none

Sjoerd Tieleman (tieleman)
Reported 2008-02-26 05:55:37 PST
It appears that SVG images are currently not working as a background image. See attached examples. HTML file contains a div which should have a SVG as a background-image (CSS). Supplied SVG image does work when simply used in an img tag.
Attachments
Example HTML file (379 bytes, text/html)
2008-02-26 05:56 PST, Sjoerd Tieleman (tieleman)
no flags
Example SVG file (580 bytes, image/svg+xml)
2008-02-26 05:56 PST, Sjoerd Tieleman (tieleman)
no flags
standalone test case (2.42 KB, text/html)
2008-03-20 00:58 PDT, Robert Blaut
no flags
Sjoerd Tieleman (tieleman)
Comment 1 2008-02-26 05:56:12 PST
Created attachment 19372 [details] Example HTML file
Sjoerd Tieleman (tieleman)
Comment 2 2008-02-26 05:56:45 PST
Created attachment 19373 [details] Example SVG file
Robert Blaut
Comment 3 2008-03-18 16:37:13 PDT
Confirmed in Webkit r31132 on Mac OS X 10.5.
Robert Blaut
Comment 4 2008-03-20 00:58:46 PDT
Created attachment 19894 [details] standalone test case This test works out of box.
Simon Fraser (smfr)
Comment 5 2008-12-30 21:20:17 PST
*** This bug has been marked as a duplicate of 21910 ***
Note You need to log in before you can comment on or make changes to this bug.