center left false positive.

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

center left false positive.

Post by roedygr » Fri May 30, 2008 12:46 am

<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
Site Admin
Posts: 3397
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Post by Albert Wiersch » Fri May 30, 2008 1:59 pm

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.
Image
Albert Wiersch

User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

Post by roedygr » Fri May 30, 2008 3:19 pm

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.

Post Reply