center left false positive.

For topics about current BETA or future releases, including feature requests.
User avatar
roedygr
Rank V - Professional
Posts: 367
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada

center left false positive.

Post by roedygr »

<td style="background:url('../image/icon48/goldenfrog.png') transparent no-repeat scroll center left;">

Beta calls it an error.

W3C validator says it is ok.

Could you check out if that is ok?
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Post by Albert Wiersch »

Hello,

It seems like the 'background-position' part of the 'background' property is at question. In your CSS this is "center left".

CSS 2.1 says 'background-position' can be:
[ [ <percentage> | <length> | left | center | right ] [ <percentage> | <length> | top | center | bottom ]? ] | [ [ left | center | right ] || [ top | center | bottom ] ] | inherit

With the relevant part:
[ left | center | right ] || [ top | center | bottom ]

Your CSS should be correct because "||" means one or more of the separated options must occur, in any order.

So it looks like this is a bug in CSE HTML Validator. I've fixed this in v8.9913.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
User avatar
roedygr
Rank V - Professional
Posts: 367
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada

Post by roedygr »

Albert Wiersch wrote: So it looks like this is a bug in CSE HTML Validator. I've fixed this in v8.9913.
It is working properly now. Thanks. Now I can get a clean check of the entire website.