Bug 83210 - webkit fails IETC box-shadow-002
Summary: webkit fails IETC box-shadow-002
Status: RESOLVED DUPLICATE of bug 58511
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dave Tharp
URL: http://samples.msdn.microsoft.com/iet...
Keywords:
Depends on:
Blocks: 76198
  Show dependency treegraph
 
Reported: 2012-04-04 13:54 PDT by Dave Tharp
Modified: 2012-04-19 15:51 PDT (History)
4 users (show)

See Also:


Attachments
Patch (3.44 KB, patch)
2012-04-04 15:28 PDT, Dave Tharp
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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).