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

Re: [css3-background] error in box-shadow examples?

From: Brad Kemper <brad.kemper@gmail.com>
Date: Mon, 26 Jan 2009 08:44:04 -0800
Cc: www-style@w3.org
Message-Id: <42501442-24C5-4810-BA82-575B90FA13AA@gmail.com>
To: Håkon Wium Lie <howcome@opera.com>

On Jan 26, 2009, at 2:45 AM, Håkon Wium Lie wrote:

>
> In:
>
>  http://dev.w3.org/csswg/css3-background/
>
> there are some nice figures in Example XXVIII.
>
> The two last examples show the effect of "spread". However, they do
> not set the fourth length parameter, which represents "spread":
>
>  box-shadow:
>    rgba(0,0,0,0.4)
>    10px 10px
>    10px /* spread */
>
>  box-shadow:
>    rgba(0,0,0,0.4)
>    10px 10px
>    10px /* spread */
>    inset
>
> I believe the two eaxmples above are missing one length value each.
>
> -h&kon
>              Håkon Wium Lie                          CTO °þe®ª
> howcome@opera.com                  http://people.opera.com/howcome
>

Huh. That is odd. They seems to be missing a zero for blur radius. Is  
that because the definition of <shadow> seems to allow the third  
length to represent either blur or spread when only three lengths are  
present? Or am I reading that wrong:
The type <shadow> stands for:

inset || [ <length> <length> <length>? <length>? || <color> ]
where the first two lengths are required.
Received on Monday, 26 January 2009 16:44:46 GMT

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