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> </ul> </div> <div dir="ltr"> <ul dir="rtl"> <li>I would be selected by :rtl, and not by :ltr.</li> </ul> </div> If you want to write a selector that matches all elements with rtl direction, you can't do it with a descendant combinator. ~fantasaiReceived on Monday, 17 March 2008 07:44:02 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:02 GMT