Bug 12743 - box-shadow should not only be drawn on the outside of the box, but also "behind" it, in case the div is transparent
Summary: box-shadow should not only be drawn on the outside of the box, but also "behi...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-12 08:37 PST by Alexander Kempgen
Modified: 2010-10-28 23:14 PDT (History)
3 users (show)

See Also:


Attachments
testcase (834 bytes, application/xhtml+xml)
2007-02-12 08:39 PST, Alexander Kempgen
no flags Details
testcase fix (836 bytes, text/html)
2007-02-12 08:54 PST, Alexander Kempgen
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kempgen 2007-02-12 08:37:34 PST
box-shadow should not only be drawn on the outside of the box, but also "behind" it, in case the div is transparent. w3 hasn't decided on this yet: http://www.w3.org/TR/css3-background/#the-box-shadow
Comment 1 Alexander Kempgen 2007-02-12 08:39:32 PST
Created attachment 13132 [details]
testcase
Comment 2 Alexander Kempgen 2007-02-12 08:54:21 PST
Created attachment 13133 [details]
testcase fix
Comment 3 Robert Blaut 2008-02-12 03:49:46 PST
Literally reading CSS3 Background and Borders Module specifications: "They are drawn just outside the border edge" the bug report is INVALID.

It's even clearer in this sentence: "If an element has multiple boxes, all of them get drop shadows, but shadows are only drawn where borders would also be drawn". 
Comment 4 Dave Hyatt 2008-02-12 12:20:41 PST
I think this will end up being INVALID as well.

Comment 5 Alexander Kempgen 2008-02-12 15:55:05 PST
http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-box-shadow (latest version, wip) still says "This example shows a shadow on the bottom right only, even though the box is transparent. Shouldn't we see a “real” shadow, projecting exactly the opaque parts of the box? What if the opaque parts are actually semi-opaque? Will the shadow be less intense there?" below example 1 in red though...
Comment 6 Robert Blaut 2008-02-21 12:36:55 PST
(In reply to comment #5)
> http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-box-shadow (latest
> version, wip) still says "This example shows a shadow on the bottom right only,
> even though the box is transparent. Shouldn't we see a “real” shadow,
> projecting exactly the opaque parts of the box? What if the opaque parts are
> actually semi-opaque? Will the shadow be less intense there?" below example 1
> in red though...
> 

But these questions are only editor notes in working draft. They aren't a part of current WD. For now the bug is INVALID. It will be reopened in case of spec change.
Comment 7 Dave Hyatt 2008-02-21 13:14:52 PST
I don't think it's INVALID.  We should keep it open for now since the issue is still unresolved.
Comment 8 Robert Blaut 2008-02-21 13:50:21 PST
(In reply to comment #7)
> I don't think it's INVALID.  We should keep it open for now since the issue is
> still unresolved.
> 

So the bug should be changed to NEW if we agree the issue is VALID, isn't it?
Comment 9 Dave Hyatt 2010-10-28 23:14:51 PDT
This bug is invalid now.

"An outer box-shadow casts a shadow as if the border-box of the element were opaque. The shadow is drawn outside the border edge only: it is clipped inside the border-box of the element. "