Andrew Fedoniouk wrote: > 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. Hi Andrew, I guess you missed my initial reply. http://lists.w3.org/Archives/Public/www-style/2008Mar/0207.html Anyhow, to put an end to this whatever, please see this text case. http://css-class.com/test/css/selectors/attribute-dir1.htm [dir="ltr"] {background:red} [dir="ltr"] [dir="rtl"] {background:blue} It will work in most UAs. Alan http://css-class.com/test/Received on Monday, 17 March 2008 06:47:36 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:02 GMT