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 00:43:26 -0700
Message-ID: <47DE211E.9000602@inkedblade.net>
To: Alan Gresley <alan@css-class.com>
CC: www-style@w3.org, robert@ocallahan.org, Andrew Fedoniouk <news@terrainformatica.com>

Alan Gresley wrote:
> I wrote:
>> Hi Andrew, I guess you missed my initial reply.
>> http://lists.w3.org/Archives/Public/www-style/2008Mar/0207.html
> http://css-class.com/test/css/selectors/attribute-dir1.htm
> [dir="ltr"] {background:yellow}
> [dir="ltr"] [dir="rtl"] {background:#ace}
> [dir="rtl"], [dir="ltr"] {color:red}
> Not to put a damper on your proposal Andrew but what were you doing
> for it not to work? Mistakes are really good to make on public
> mailing list anyway since it helps you understand CSS a little bit
> better. :-)

<div dir="rtl">
   <ul dir="ltr">
     <li>I would be selected by :ltr, and not by :rtl.</li>
<div dir="ltr">
   <ul dir="rtl">
     <li>I would be selected by :rtl, and not by :ltr.</li>

If you want to write a selector that matches all elements with rtl
direction, you can't do it with a descendant combinator.

Received on Monday, 17 March 2008 07:44:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:34 UTC