W3C home > Mailing lists > Public > www-style@w3.org > October 2001

CSS2 erratum: 'text-shadow' value definition

From: Etan Wexler <ewexler@stickdog.com>
Date: Tue, 2 Oct 2001 18:36:06 -0500
To: Web style list <www-style@w3.org>
Message-Id: <20011002222841.B5F34136300@server12.safepages.com>
The CSS2 value definition for the 'text-shadow' property is incorrect.

The incorrect value definition follows.

  Value:  	none | [<color> || <length> <length> <length>? ,]* [<color> || 
<length> <length> <length>?] | inherit 
  
The prose states, "This property accepts a comma-separated list of shadow 
effects ... Each shadow effect must specify a shadow offset and may 
optionally specify a blur radius and a shadow color."

One problem (already noted, I believe) is that the comma may not appear 
after the color component but only after the lengths.

The other problem is that the offset is optional.

I suggest the following, which corrects both problems.

Value:  	none | [ <shadow> , ]* <shadow> | inherit

where <shadow> is
[ <length> <length> <length>? <color>? |
  <color> <length> <length> <length>? ]

-- 
Etan Wexler
Received on Tuesday, 2 October 2001 18:30:21 GMT

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