Re: CSS Validator Error

> This will not validate (code from: 14.2.1: http://www.w3.org/TR/2008/REC-CSS2-20080411/colors.html) 
> :
>
> BODY { background: url("banner.jpeg") bottom }
>
> This will:
>
> BODY { background: url("banner.jpeg") center bottom }
>
> It appears that the validator is requiring both keywords/values for  
> the background-position portion of the background property.

I too can verify that this issue occurs. I've also discovered that  
other property orderings don't validate:-

[<'background-image'>||<'background-attachment'>||<'background- 
repeat'>||<'background-color'>]<'background-position'> http://idreamincode.co.uk/tests/validator-css/1.html
<'background-position'> [<'background-color'>(RGB specification)|| 
<'background-image'>] http://idreamincode.co.uk/tests/validator-css/2.html

Received on Monday, 7 December 2009 20:50:07 UTC