Re: [CSS3] ltr and rtl pseudo-class proposal

Alan Gresley wrote:
> 
> Pseudo-classes are slightly different.
> 
> li:hover a {background:red}
> li:focus a {background:red}
> li:rtl a {background:red}
> 
> Then I could have.
> 
> li:hover {background:blue}
> li:focus {background:blue}
> 
> 
> All the above occurs after a user action. This is not a user action
> 
> li:rtl {background:blue}
> 
> but rather an attribute belonging to the source. How can this be
> described as a pseudo-class? You are talking about a parent or ancestor
> element with a particular attribute. Almost no selector like that exist
> in CSS at this current time.

:lang(fr) works exactly this way.

~fantasai

Received on Monday, 17 March 2008 16:59:02 UTC