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

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

From: Tex Texin <textexin@xencraft.com>
Date: Sat, 5 Jun 2010 03:22:35 -0700
To: "'Adil Allawi'" <adil@diwan.com>, "'Aharon \(Vladimir\) Lanin'" <aharon@google.com>
Cc: "'Phillips, Addison'" <addison@lab126.com>, "'Tab Atkins Jr.'" <jackalmage@gmail.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>, <public-i18n-bidi@w3.org>
Message-ID: <00fe01cb0499$048fee40$0dafcac0$@com>
Adil,

 

I agree that bullet alignment (or direction) is separate from the text direction.

However, I have trouble seeing that the bullet position would change from list item to list item.

Would it be adequate to have the bullet position set by the OL and UL elements, rather than the LI?

Do you have an example where bullet position might change with each item?

I can agree the text direction might change on each item.

I think the alignment of the text and the bullet position would not.

I would like to see an example of where it was required to be different.

 

Also, the setting of the indent , padding, margin, etc. is confusing if the relationship between the bullet and the text is changing. How do you see that working? E.g. is left-margin and right-margin switching roles?

 

tex

 

From: public-i18n-bidi-request@w3.org [mailto:public-i18n-bidi-request@w3.org] On Behalf Of Adil Allawi
Sent: Saturday, June 05, 2010 2:33 AM
To: Aharon (Vladimir) Lanin
Cc: Phillips, Addison; Tab Atkins Jr.; Ambrose LI; Alan Gresley; fantasai; Bert Bos; W3C style mailing list; public-i18n-bidi@w3.org
Subject: Re: [CSS21] bidi, text-align, and list markers

 

I think there is a need to control, through CSS, of the bullet alignment separately from the text align and a new value (for want of a better name) 'match-dir' to give the alignment based on the dir attribute of the <li> element as follows:

For a list starting with <ul dir="ltr"><li>hello</li> :

1. <li dir="rtl" style="text-align:match-dir; bullet-align:match-dir">HELLO gives:

* hello
                  OLLEH *


2. <li dir="rtl" style="text-align:match-dir; bullet-align:match-parent">HELLO gives:

* hello
*                 OLLEH


4. <li style="text-align:match-parent; bullet-align:match-dir">HELLO (with no styles) gives:

* hello
  OLLEH *
 
 
3. <li style="text-align:match-parent; bullet-align:match-parent">HELLO(with no styles) gives:
 
* hello
* OLLEH
 
 

The default behavior of the HTML with no CSS would be one of the four possibilities above.

regards

Adil
Received on Saturday, 5 June 2010 10:23:45 GMT

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