W3C home > Mailing lists > Public > www-international@w3.org > January to March 2010

Re: More best practices for RTL scripts (markup vs CSS for bidi).

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 11 Jan 2010 13:35:26 -0800
Message-ID: <4B4B999E.1090806@inkedblade.net>
To: Simon Montagu <smontagu@smontagu.org>
CC: Adil Allawi <adil@diwan.com>, ntounsi@emi.ac.ma, Najib Tounsi <ntounsi@gmail.com>, "public-i18n-core@w3.org" <public-i18n-core@w3.org>, 'WWW International' <www-international@w3.org>
On 11/26/2009 10:54 PM, Simon Montagu wrote:
>
> I assume your Gecko example is using a very recent version of Gecko,
> such as a nightly build or a beta of Firefox 3.6? I fixed this issue
> only a few months ago.
>
> The HTML standard does specify what to do in this case, see
> http://www.w3.org/TR/REC-html40/struct/dirlang.html#style-bidi:
>
> "When a block element that does not have a dir attribute is transformed
> to the style of an inline element by a style sheet, the resulting
> presentation should be equivalent, in terms of bidirectional formatting,
> to the formatting obtained by explicitly adding a dir attribute
> (assigned the inherited value) to the transformed element."
>
> In practice, however, since browsers are not consistent, authors will
> have to use CSS properties to achieve the expected results.

Does this mean applying "unicode-bidi: embed" to all block-level elements?
Because that seems like it fulfill those requirements.

~fantasai
Received on Monday, 11 January 2010 21:36:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 11 January 2010 21:36:08 GMT