Bug 92585 - img and background-image don't correctly load svg stack icons
Summary: img and background-image don't correctly load svg stack icons
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified All
: P2 Normal
Assignee: Nobody
URL: http://freemen.be/examples/svg-stack-...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-28 17:05 PDT by cobaco
Modified: 2015-01-21 01:15 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cobaco 2012-07-28 17:05:55 PDT
I have a testcase set up at http://freemen.be/examples/svg-stack.html

that's a basic html page whose body has just an img tag with src="icons.svg#first"
problem is that the requested icon is not showing

The icon is shown correctly if I load it directly through http://freemen.be/examples/icons.svg#first
Comment 1 cobaco 2012-08-01 12:12:35 PDT
did some further testing, and compared with the other major browsers.

result of the test can be found at http://freemen.be/examples/svg-stack-overview.html

tested with chrome on windows and linux, safari on windows, and rekonq on linux (all using webkit engine obviously and all showing the problem)
Comment 2 cobaco 2013-02-01 11:50:31 PST
As http://freemen.be/examples/svg-stack-overview.html shows the problem:
- applies when loading an svg-stack image as css-background or with an <img>
- loading the same svg-image with an <embed> or <object> tag works fine

https://bugs.webkit.org/show_bug.cgi?id=100269 and
https://bugs.webkit.org/show_bug.cgi?id=65344 seem to indicate that the problem is with the application of the css embedded in the svg

https://bugs.webkit.org/show_bug.cgi?id=91790 is a duplicate of this bug with regards to loading the image as an css-background

https://bugs.webkit.org/show_bug.cgi?id=89985 also seems to be a duplicate/related
Comment 3 cobaco 2015-01-21 01:15:15 PST
Test as working as of Chrome 36