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

Re: [css3-background] box-shadow syntax

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 19 Aug 2008 17:08:50 +0100
Message-ID: <48AAF012.4020300@inkedblade.net>
To: Brad Kemper <brkemper.comcast@gmail.com>
CC: www-style@w3.org

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
Received on Tuesday, 19 August 2008 16:09:30 GMT

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