W3C home > Mailing lists > Public > www-validator-css@w3.org > September 2010

Re: Apparent problem with cursor: url(uri);

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Thu, 16 Sep 2010 08:48:00 +0100
Cc: <www-validator-css@w3.org>
Message-Id: <E0C22C34-73A3-44F1-9AE9-E64CD6E6377B@googlemail.com>
To: IAN DAVIES <iandandav@hotmail.com>
On 15 Sep 2010, at 23:11, IAN DAVIES wrote:

> There appears to be a fault with the CSS Validator.
> Using  
> cursor: url(cursor.cur);
> to display an image as a custom cursor shows as invalid.
> the message being
> Value Error : cursor Missing comma separator. : url(cursor.cur) url(cursor.cur) 
> 
> whereas if I use something like 
> cursor: crosshair;
> 
> the built in cursors is valid.

The validator is correct. The comma is not optional because providing a fallback cursor is not optional:

INVALID: a{cursor: url(cursor.cur)}

VALID:   a{cursor: url(cursor.cur), pointer}

http://www.w3.org/TR/CSS21/ui.html#propdef-cursor

--
Benjamin Hawkes-Lewis
Received on Thursday, 16 September 2010 07:48:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:26 GMT