W3C home > Mailing lists > Public > www-style@w3.org > May 2011

Re: [CSS21] [css3-writing-modes] We got the bidi box model backwards

From: Uri Bernstein <urib@google.com>
Date: Thu, 12 May 2011 10:53:37 +0300
Message-ID: <BANLkTik7envDB+7e-asgGa=v-wsebV_AJQ@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: "www-style@w3.org" <www-style@w3.org>, "public-i18n-bidi@w3.org" <public-i18n-bidi@w3.org>
What bothers me is that:
<p dir="ltr">foo <b><i dir="rtl"
style="margin-left:10px">FOO<br>BAR</i></b>bar<p>

will render differently than:

<p dir="ltr">foo <b dir="rtl"><i
style="margin-left:10px">FOO<br>BAR</i></b>bar<p>

Currently these are identical, and I'm concerned that making them different
would be unintuitive and perhaps confusing.

On the other hand, I do see your point.

--Uri.


On Wed, May 11, 2011 at 20:51, fantasai <fantasai.lists@inkedblade.net>wrote:

> On 05/11/2011 05:18 AM, Uri Bernstein wrote:
>
>> This seems reasonable to me.
>> One question - do you literally mean "the element's parent's direction",
>> or do you actually mean "the element's containing block's direction"?
>> I think the latter makes more sense.
>>
>
> I do actually mean the element's parent's direction. If you consider the
> spacing example again, using another level of nesting, you'll see that
> using the containing block's direction would result in the same problem
> again when you get to the second level of nesting:
>
>  |Here is some text   AND HERE IS MY  [ ๐‘ž๐‘ข๐‘œ๐‘ก๐‘’ ๐‘กโ„Ž๐‘Ž๐‘ก|
>  |๐‘๐‘œ๐‘›๐‘ก๐‘–๐‘›๐‘ข๐‘’๐‘  ]  ON THE LINE   and my text          |
>  |continues.                                      |
>
> Using containing block:
>
>  |Here is some text      ๐‘ž๐‘ข๐‘œ๐‘ก๐‘’ ๐‘กโ„Ž๐‘Ž๐‘ก YM SI EREH DNA|
>  |ENIL EHT NO ๐‘๐‘œ๐‘›๐‘ก๐‘–๐‘›๐‘ข๐‘’๐‘       and my text          |
>  |continues.                                      |
>
> Using parent element:
>
>  |Here is some text   ๐‘ž๐‘ข๐‘œ๐‘ก๐‘’ ๐‘กโ„Ž๐‘Ž๐‘ก   YM SI EREH DNA|
>  |ENIL EHT NO    ๐‘๐‘œ๐‘›๐‘ก๐‘–๐‘›๐‘ข๐‘’๐‘    and my text         |
>  |continues.                                      |
>
> ~fantasai
>
>
>
Received on Thursday, 12 May 2011 07:54:05 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:40 GMT