W3C home > Mailing lists > Public > www-style@w3.org > January 2011

Re: Shadow knockout

From: Mounir Lamouri <mounir.lamouri@gmail.com>
Date: Wed, 26 Jan 2011 23:57:50 +0100
Message-ID: <4D40A6EE.6010900@gmail.com>
To: www-style@w3.org
CC: "Eric A. Meyer" <eric@meyerweb.com>
On 01/26/2011 11:22 PM, Eric A. Meyer wrote:
> At 9:20 AM -0800 1/26/11, Tab Atkins Jr. wrote:
>> On Wed, Jan 26, 2011 at 5:00 AM, Rudolph Gottesheim
>> <r.gottesheim@loot.at> wrote:
>>>  I'm missing a way to define if I want an element to knock out its own
>>>  box-shadow. If I define { box-shadow: 10px 10px 10px #000;
>>> background-color:
>>>  rgba(255, 0, 0, .5); }, I can't see the top left corner of the shadow.
>>>
>>>  Maybe something like 'box-shadow-knockout: knockout' could work.
>>
>> I don't understand what you're trying to accomplish.  Could you supply
>> a picture of what you want to happen?
> 
>    My guess is he's asking "if I define a semi-transparent or
> transparent background for an element with a drop shadow, why can't I
> see the part of the shadow that's 'behind' the element through the
> background, and is there a way to make it appear there?".

FWIW, it might be harder but it's doable with SVG filters.

--
Mounir
Received on Wednesday, 26 January 2011 23:01:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:36 GMT