W3C home > Mailing lists > Public > www-style@w3.org > March 2008

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 17 Mar 2008 09:58:23 -0700
Message-ID: <47DEA32F.1090000@inkedblade.net>
To: Alan Gresley <alan@css-class.com>
CC: Andrew Fedoniouk <news@terrainformatica.com>, www-style@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:02 GMT