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

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 UTC