Bug 19162

Summary: Transparent PNGs lose alpha transparency when used in border-image
Product: WebKit Reporter: David Zulaica <zulaica>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: mrowe
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
URL: http://synaptictransmission.org/tests/border-image-test.html
Attachments:
Description Flags
HTML/CSS Reduction
none
PNG file for HTML/CSS Reduction
none
Optional Background PNG for HTML/CSS Reduction none

David Zulaica
Reported 2008-05-20 16:49:11 PDT
Using WebKit Nightly Build r33943 (built on May 20th, 2008) on Mac OS X 10.5.2. Please see test case URL supplied. I applied a border-image to a DIV using -webkit-border-image, -khtml-border-image, and border-image (which isn't supported yet as far as I can tell). The PNG used for the border image has an alpha transparency (http://synaptictransmission.org/tests/img/border-image.png) which is rendered as white. Behavior expected: PNG should retain alpha transparency. Unable to test on other platforms.
Attachments
HTML/CSS Reduction (1.10 KB, text/html)
2008-05-20 16:54 PDT, David Zulaica
no flags
PNG file for HTML/CSS Reduction (3.60 KB, image/png)
2008-05-20 16:54 PDT, David Zulaica
no flags
Optional Background PNG for HTML/CSS Reduction (6.08 KB, image/png)
2008-05-20 16:55 PDT, David Zulaica
no flags
David Zulaica
Comment 1 2008-05-20 16:54:02 PDT
Created attachment 21262 [details] HTML/CSS Reduction Requires attached PNG files
David Zulaica
Comment 2 2008-05-20 16:54:56 PDT
Created attachment 21263 [details] PNG file for HTML/CSS Reduction
David Zulaica
Comment 3 2008-05-20 16:55:34 PDT
Created attachment 21264 [details] Optional Background PNG for HTML/CSS Reduction
Mark Rowe (bdash)
Comment 4 2008-05-20 20:21:56 PDT
The alpha channel in the image *is* being respected. The white that you're seeing is the background color of the div as specified in the CSS: div#container { background: #FFF; } Removing this line gives the expected result.
Note You need to log in before you can comment on or make changes to this bug.