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

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

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sun, 16 Mar 2008 20:08:23 -0700
Message-ID: <47DDE0A7.5070802@terrainformatica.com>
To: robert@ocallahan.org
CC: www-style@w3.org

Robert O'Callahan wrote:
> So what happens with
> 
> div::ltr { direction:rtl; }
> 
> ?

Nothing wrong in principle.

div:ltr will match any element that has or is
inside element with dir="ltr" defined explicitly. So

   div:ltr { direction:rtl; }

simply means that in this particular div author wants
to see rtl text despite of possible ltr environment.

May or may not have any sense. The same as here:
   div[dir="ltr"] { direction:rtl; }

-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Monday, 17 March 2008 03:08:56 GMT

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