Re: Effect of dir="lro" on block elements

Hello Richard,

Richard Ishida wrote:

> A question has arisen during the ITS work.  Imagine a document where the context is rtl (eg. it has <html dir="ltr"...>).

(I suppose you meant dir="rtl")

> If we specify dir="lro" on a <ul> should the bullets appear to the right or the left? If dir="lro" appears on a <table> should the columns flow from left to right or right to left? etc

In principle, it should work as the style sheet says.  In the case of
XHTML 2.0, it's specified as follows [1]:

  *[dir="ltr"] { unicode-bidi: embed; direction: ltr }
  *[dir="rtl"] { unicode-bidi: embed; direction: rtl }
  *[dir="lro"] { unicode-bidi: bidi-override; direction: ltr }
  *[dir="rlo"] { unicode-bidi: bidi-override; direction: rtl }

So according to CSS rules, bullets would appear to the left of a <ul>
(and the list itself would be aligned to the left).  Table is a bit
tricky, but the columns would flow from left to right (but the table
itself would be aligned to the right, unless enclosing block-level
element specified otherwise).

[1] http://www.w3.org/TR/2005/WD-xhtml2-20050527/mod-bidi.html#col_Bi-directional

-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium

Received on Tuesday, 6 December 2005 15:15:08 UTC