Bug 27921

Summary: [Gtk] -webkit-box-shadow renders as a black background
Product: WebKit Reporter: Tom Adams <tom>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: jmalonzo, krit, mrobinson
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
URL: http://webkit.org/blog/86/box-shadow/
Description Flags
Rendering of associated URL in WebKit/GTK+ (uzbl browser).
Test case showing what works and what doesn't. none

Description Tom Adams 2009-08-01 11:14:54 PDT
Created attachment 33937 [details]
Rendering of associated URL in WebKit/GTK+ (uzbl browser).

(Version is libwebkit-1.1.10-2 (WebKit/GTK+), from Arch Linux's extra repository).

1) -webkit-box-shadow properties cause the element to acquire a black background (similar to background: black).
2) "-webkit-box-shadow: none" works as expected (renders no box shadow, and no erronious background).
3) Using 4 length parameters also renders no box shadow and no erronious background.

See the attached screenshot and test case (which I will add in a comment).
Comment 1 Tom Adams 2009-08-01 11:17:09 PDT
Created attachment 33938 [details]
Test case showing what works and what doesn't.
Comment 2 Jan Alonzo 2009-08-02 01:05:53 PDT
I don't get a black background in my ToT build but I don't get a box-shadow either.
Comment 3 Dirk Schulze 2009-08-16 09:16:09 PDT
There shouldn't be any background. And I don't see a shadow either. BoxShadows are "disabled" or better not supprted. Cairo do not support bluring. We have to blur the shadow our self.
Did you modified the source code in GraphicsContext.cpp?
Comment 4 Dirk Schulze 2009-12-16 06:10:02 PST
We have real shadow support now. Can you test it again please?
Comment 5 Martin Robinson 2010-10-06 12:26:27 PDT
This is certainly fixed now. I'm going to close the bug, but feel free to open a new bug if there more problems with box shadow.