Re: Shadow knockout

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 UTC