W3C home > Mailing lists > Public > public-i18n-bidi@w3.org > January to March 2010

Re: bidi proposal

From: Najib Tounsi <ntounsi@gmail.com>
Date: Fri, 19 Mar 2010 16:20:28 +0000
Message-ID: <4BA3A44C.90406@emi.ac.ma>
To: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
CC: fantasai <fantasai.lists@inkedblade.net>, "Aharon (Vladimir) Lanin" <aharon@google.com>, public-i18n-bidi@w3.org
Hello Martin, others

Please see bellow

Martin J. Dürst wrote:
> Hello Aharon, fantasai, others,
> See below.
> On 2010/03/18 6:32, fantasai wrote:
> [snip]
>> The old behavior would cause things like
>> abcd.
>> <div style="display:inline">efg HIJK.</div>
>> LMNOP qrst.
>> which is normally rendered as
>> abcd
>> efg KJIH.
>> PONML qrst.
>> to be rendered as
>> abcd. efg PONML .KJIH qrst.
>> Since the author chose a block-level element, it's reasonable to assume
>> that they meant for that string of text to stay together as one unit.
> Yes indeed! That was the reason why we specified it that way in HTML4. 
> Using
>   <div style='display: inline">
> as given here (i.e. with a style *attribute*) is good to make the 
> example short, but isn't the way this would usually be used. What we 
> imagined is use cases such as being able to change e.g. a <ol> to an 
> inline list such as "1) apple; 2) orange; 3) pear."
> However, when we wrote the text in HTML4 
> (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."
> we were not aware of the fact that embeddings have the kind of side 
> effects that the attribute currently named 'bdi' intends to address. 
> So my current guess is that this should be fixed to say: "explicitly 
> addiing a dir attribute (assigned the inherited value) and a bdi 
> attribute (with value yes)".

I would agree that the inlined element remains the same wrt bidi behavior.
Firefox 3.6, IMHO, is right.

> Aharon, would that make more sense to you that the current Firefox 
> behavior?
> [snip]
>>  > I agree that it would be best to come up with an explicit spec of 
>> what
>>  > the expected bidi behavior is in all these strange combinations of
>>  > element type and display type.
>> Yes.
> What are the other combinations that we have to look at?

Another point is when display:inline is combined with float:right.

Should inline elements flow (by side effect) from right to left?

There were a short thread about a similar point here (Markup vs CSS for 
(Firefox 3.6 is, once again, right)

Maybe it is is the opportunity to try fix "misunderstandings" between 
browsers, and between browsers and specs.

Regards, Najib
Received on Friday, 19 March 2010 16:15:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:24:37 UTC