- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Mon, 17 Mar 2008 09:58:23 -0700
- 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 UTC