W3C home > Mailing lists > Public > www-style@w3.org > June 2010

Re: [CSS21] bidi, text-align, and list markers

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 3 Jun 2010 10:11:13 -0700
Message-ID: <AANLkTilDfbA1jajspP0ml3H6gvNFOyFzBOkJsqj9t1ci@mail.gmail.com>
To: "Phillips, Addison" <addison@lab126.com>
Cc: "Aharon (Vladimir) Lanin" <aharon@google.com>, Ambrose LI <ambrose.li@gmail.com>, Alan Gresley <alan@css-class.com>, fantasai <fantasai.lists@inkedblade.net>, Bert Bos <bert@w3.org>, W3C style mailing list <www-style@w3.org>, Adil Allawi <adil@diwan.com>, "public-i18n-bidi@w3.org" <public-i18n-bidi@w3.org>
On Thu, Jun 3, 2010 at 10:02 AM, Phillips, Addison <addison@lab126.com> wrote:
> Aharon wrote:
>> Please note that this is not the same as controlling the list marker
>> location:
>>
>> * hello
>>                                           OLLEH *
>>
>> is not the same as
>>
>> * hello
>> *                                         OLLEH
>>
>> is not the same as
>>
>> * hello
>> * OLLEH
>>
>> is not the same as
>>
>> * hello
>> OLLEH *
>
> For clarity, could you spell out what combination of proposed attributes
> defines each of the above?

The first is
<ul dir=ltr>
  <li>hello</li>
  <li dir=rtl>HELLO</li>
</ul>

The second is
<ul dir=ltr>
  <li>hello</li>
  <li><span dir=rtl>HELLO</span></li>
</ul>
(Actually, because this case is pure rtl text, the span isn't
necessary.  But if there is mixed text that could confuse the bidi
algorithm, such that you want to mark all of it as rtl, you need to
use the span as I have above.)

The third and fourth are the same as the first and second,
respectively, just with the <ul> set to a shrinkwrap width through
some mechanism (such as floating, or being a table cell).

~TJ
Received on Thursday, 3 June 2010 17:12:09 GMT

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