Bug 83210

Summary: webkit fails IETC box-shadow-002
Product: WebKit Reporter: Dave Tharp <dtharp>
Component: CSSAssignee: Dave Tharp <dtharp>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: macpherson, menard, simon.fraser, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://samples.msdn.microsoft.com/ietestcenter/css3/bordersbackgrounds/box-shadow-002.htm
Bug Depends on:    
Bug Blocks: 76198    
Attachments:
Description Flags
Patch none

Description Dave Tharp 2012-04-04 13:54:11 PDT
No red should be visible on the rendered page.
Comment 1 Dave Tharp 2012-04-04 15:12:57 PDT
Here's the crux of the problem:  The CSS in the test htm file specifies
the box-shadow thusly:

    box-shadow: 50px 10px 0px 10px ;

The important thing to note here is that there is no shadow color
specified.  IE, Mozilla, and Opera default the shadow color to black.
WebKit defaults the color to transparent.

Unfortunately, the spec ( http://www.w3.org/TR/css3-background/#the-box-shadow ) does not seem to specify the behavior when no color is given.  It does show that color is indeed optional.

It seems that IE, Mozilla, and Opera have all interpreted a lack of specified color to mean "default to black". And this actually makes sense to me.  I mean, why would you specify a shadow if it wasn't going to be visible anyway?
Comment 2 Dave Tharp 2012-04-04 15:13:32 PDT
Note the same root issue is the cause of bug 83223.
Comment 3 Dave Tharp 2012-04-04 15:28:07 PDT
Created attachment 135698 [details]
Patch
Comment 4 Simon Fraser (smfr) 2012-04-05 16:26:42 PDT

*** This bug has been marked as a duplicate of bug 58511 ***
Comment 5 Eric Seidel (no email) 2012-04-19 15:51:15 PDT
Comment on attachment 135698 [details]
Patch

Cleared review? from attachment 135698 [details] so that this bug does not appear in http://webkit.org/pending-review.  If you would like this patch reviewed, please attach it to a new bug (or re-open this bug before marking it for review again).