bidi-override scope in CSS2 and CSS 2.1

Suppose my stylesheet says that where I have dir="rlo" I apply a bidi override to my (say) XHTML2 text.

CSS 2 says:

"If the element is inline-level or a block-level element that contains only inline-level elements, this creates an override."

Does that mean that none of the text in this example below actually has the bidi algorithm overridden?

<div dir="rlo">Inline only text.
 <p>Some text in a block.</p>
 <p>Some more text.</p>
 </div>




CSS 2.1 says:

"For inline-level elements this creates an override. For block-level, table-cell, table-caption, or inline-block elements this creates an override for inline-level descendents not within another block-level, table-cell, table-caption, or inline-block element."

Does that mean that only the text "Inline only text." in this example below actually has the bidi algorithm overridden?

<div dir="rlo">Inline only text.
 <p>Some text in a block.</p>
 <p>Some more text.</p>
 </div>

Thanks for clarification.

RI



============
Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)

http://www.w3.org/People/Ishida/
http://www.w3.org/International/
http://people.w3.org/rishida/blog/
http://www.flickr.com/photos/ishida/

Received on Friday, 8 September 2006 15:57:28 UTC