W3C home > Mailing lists > Public > public-i18n-its@w3.org > October to December 2005

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

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Wed, 07 Dec 2005 00:14:35 +0900
Message-ID: <i51r78qdzqc.wl@w3.mag.keio.ac.jp>
To: "Richard Ishida" <ishida@w3.org>
Cc: public-i18n-its@w3.org

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:04:07 UTC