Summary: | webkit fails IETC box-shadow-002 | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dave Tharp <dtharp> | ||||
Component: | CSS | Assignee: | 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
Dave Tharp
2012-04-04 13:54:11 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? Created attachment 135698 [details]
Patch
*** This bug has been marked as a duplicate of bug 58511 *** 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). |