- From: Henrik Hansen <henrikb4@gmail.com>
- Date: Sat, 10 May 2008 19:48:59 +0200
- To: www-style@w3.org
- Message-ID: <dd12cf660805101048w5290755clb1e38adda472de7a@mail.gmail.com>
I've made a diagram that explains my impression of how box-shadow should work. http://img440.imageshack.us/img440/5240/shadowdiagramfqh7.png The first box (top-left) is a red box with a shadow. The shadow is black and semi-transparent. Now on the second box (mid-left) is a semi-transparent red box with a shadow, the box is slightly red and is more transparent than the first. This is because the "light" is transmitted through the box, thus making the shadow red and less transparent.' The box on the mid-right has no transmittance and is therefore black, and normally transparent. A last thing is the mask setting: if its true: the shadow can't be seen through the box itself. Just my thought on how this should work. But of course this is maybe not they most useful set features, I could see some use of it: If you f.x. had a ..png image with some transparent parts and some solid parts, then you could make shadows automatically in the UA. That is not possible if the shadow can't be seen through a semi-/transparent object. -Henrik
Received on Sunday, 11 May 2008 10:39:06 UTC