CSS2 erratum: 'text-shadow' value definition

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 UTC