W3C home > Mailing lists > Public > www-style@w3.org > August 2008

Re: [css3-background] box-shadow syntax

From: Brad Kemper <brkemper.comcast@gmail.com>
Date: Tue, 19 Aug 2008 09:52:47 -0700
Cc: www-style@w3.org
Message-Id: <9AD961C2-E01D-45DA-A6E1-B541B511D6D3@gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>


On Aug 19, 2008, at 9:08 AM, fantasai wrote:

> Brad Kemper wrote:
>>>>> The syntax I've drafted allows you to have both at the same  
>>>>> time, but
>>>>> you have to set them together.
>>>> What does that look like in this syntax? Or do you mean you would  
>>>> add another keyword to add as well for "outer"?
>>>
>>> In the current syntax you can have both like this:
>>> box-shadow: 3px 3px, inset 3px 3px;
>>> because the keyword is associated with each shadow, not with the  
>>> entire
>>> property.
>> OK, I see, then you are using multiple shadows. But then I don't  
>> understand the part about "maybe they should be separate properties  
>> so they can be set independently". If you are using multiple  
>> shadows, wouldn't they be able to be set independently regardless  
>> of whether "inset" (or "inner") is a value of a separate sub- 
>> property than "outer"?
>
> If they were separate properties, it'd look like this instead
> (substitute whatever names seem appropriate):
>
>  box-shadow: 3px 3px;
>  inset-shadow: 3px 3px;
>
> ~fantasai

I understand now. IMO, there would be very little advantage to doing  
it that way (as a completely different property, instead of the multi- 
shadow version you showed before), and would further complicate adding  
inner shadow to text-shadow ("inner-text-shadow") if we wanted parity  
there.
Received on Tuesday, 19 August 2008 16:53:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:11 GMT