RESOLVED INVALID 12743
box-shadow should not only be drawn on the outside of the box, but also "behind" it, in case the div is transparent
https://bugs.webkit.org/show_bug.cgi?id=12743
Summary box-shadow should not only be drawn on the outside of the box, but also "behi...
Alexander Kempgen
Reported 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
Attachments
testcase (834 bytes, application/xhtml+xml)
2007-02-12 08:39 PST, Alexander Kempgen
no flags
testcase fix (836 bytes, text/html)
2007-02-12 08:54 PST, Alexander Kempgen
no flags
Alexander Kempgen
Comment 1 2007-02-12 08:39:32 PST
Created attachment 13132 [details] testcase
Alexander Kempgen
Comment 2 2007-02-12 08:54:21 PST
Created attachment 13133 [details] testcase fix
Robert Blaut
Comment 3 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".
Dave Hyatt
Comment 4 2008-02-12 12:20:41 PST
I think this will end up being INVALID as well.
Alexander Kempgen
Comment 5 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...
Robert Blaut
Comment 6 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.
Dave Hyatt
Comment 7 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.
Robert Blaut
Comment 8 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?
Dave Hyatt
Comment 9 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. "
Note You need to log in before you can comment on or make changes to this bug.