Re: a:hover and a:active and named anchors

Stuart Ballard wrote:
> 
> We're asking developers to go from the familiar:
> 
> a:hover { ... }
> 
> To:
> 
> :link:hover, :visited:hover { ... }
> 
 > [...]

Note that while in HTML, a:hover may give the impression of working, it in fact 
fails when the language you are using (e.g. XLink) doesn't use <a> as the 
element for links.

Unless you are proposing that the element type "a" be a magical shortcut for 
":link, :visited"...

Mozilla has the extension pseudo-class :-moz-any-link. Maybe CSS could have such 
a pseudo-class introduced.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 30 July 2002 14:20:55 UTC