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

Re: [css3-background] box-shadow syntax

From: Alan Gresley <alan@css-class.com>
Date: Fri, 09 May 2008 12:47:38 +1000
Message-ID: <4823BB4A.3040507@css-class.com>
To: Brad Kemper <brkemper@comcast.net>
CC: Eli Morris-Heft <dai@doublefishstudios.com>, "www-style@w3.org list" <www-style@w3.org>

Brad Kemper wrote:
> 
> On May 8, 2008, at 9:48 AM, Eli Morris-Heft wrote:
[...]
>> Much as I hate to suggest adding another keyword for this, I agree 
>> that we probably need inner and outer here, but I'm not sure why 
>> you've suggested that syntax. I may be rusty on my CSS, but I don't 
>> think <length>(keyword) appears anywhere else. Hence:
>>
>> box-shadow: none | <shadow> [inner | outer] [, <shadow> [inner | outer]]*
>> where <shadow> is: [<length> <length> <length>? || <color>]
>>
>> I was (and still am) tempted to have '[inner | outer]' be optional and 
>> default of outer, due to the expectation for a shadow behind and 
>> outside the object, rather than on top of and within. Perhaps we need 
>> to (re)define shadow?
> 
> Yes, adding "inner" and "outer" as additional parameters of the 
> box-shadow/text-shadow value (with a default of "outer") would be more 
> obvious. That might be a better way to go.


BTW, I stilling learning syntax


box-shadow: none | <shadow> [inner | outer] [, <shadow> [inner | outer]]*
where <shadow> is: [<length> <length> <length>? || <color>]


and what it all means. I only code CSS. Ok, the default could be.

4px

and optional keywords (in brackets)

4px(even) -  no graduation.
4px(inner)
4px(electric)
4px(ghostly)
4px(foggy)
4px(cloudy)


Since all these extras can be added by later implementations. Do we 
allow two words (inner-cloudy) or values (electric=3).


This must be done with some thought since () within a selector or a 
style declaration are dropped by most implementations (which is good) 
but can be used for CSS3/4 in powerful ways.


Alan
Received on Friday, 9 May 2008 02:48:28 GMT

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