Bug 27190 - SVG embedded in HTML object: transparent image areas white rather than background-color
Summary: SVG embedded in HTML object: transparent image areas white rather than backgr...
Status: RESOLVED DUPLICATE of bug 27078
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2009-07-12 08:52 PDT by Glenn Brauen
Modified: 2009-07-12 10:48 PDT (History)
0 users

See Also:

test case html file. (910 bytes, text/html)
2009-07-12 08:52 PDT, Glenn Brauen
no flags Details
test case svg file. (399 bytes, image/svg+xml)
2009-07-12 08:54 PDT, Glenn Brauen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Glenn Brauen 2009-07-12 08:52:38 PDT
Created attachment 32626 [details]
test case html file.

When embedding an SVG image in an HTML <object> and scaling the SVG image so that it does not clip (the default behaviour), the images transparent areas should be filled with the background-color of the HTML area into which the image is embedded.

Using Safari 4.0.2 the transparent areas of the image are coloured white.

Using Safari 4.0.1, Safari 3, and Firefox 3 the transparent areas are coloured using the defined background-color so this is a recent change in webkit.

I've attached a test case in two parts: HTML file that embeds a SVG file so that there are transparent areas.

To reproduce:
1) download the test files.
2) open index.html.

The border should be filled with the lightgreen background-color but in Safari 4.0.2 will be white.
Comment 1 Glenn Brauen 2009-07-12 08:54:21 PDT
Created attachment 32627 [details]
test case svg file.
Comment 2 Mark Rowe (bdash) 2009-07-12 10:48:52 PDT

*** This bug has been marked as a duplicate of bug 27078 ***