Re: [css3 lists] list-style-direction

On Sun, Nov 14, 2010 at 4:12 AM, Aharon (Vladimir) Lanin
<aharon@google.com> wrote:
> Discussion at the CSS WG meeting at TPAC 2010
> (http://www.w3.org/2010/11/01-CSS-irc.html) resulted in a modified proposal,
> to which I subscribe:
>
> A new value for list-style-position: outside-parent (in addition to the
> existing inside|outside).
>
> list-style-position:outside-parent would work like
> list-style-position:outside, except that list-style-position:outside-parent
> will apply the list element's direction to the marker box;
> list-style-position:outside would, on the other hand, continue to use the
> item element's direction for the marker box. The marker box direction
> affects both the bidirectional ordering of the marker text and the location
> of the marker box, which is on the "start" side of its direction.
>
> It was also proposed that for list-style-position:outside-parent list items,
> the list item's text-align will apply only to the list item's content, not
> to its marker box, which will behave as if it had text-align:start. This is
> the current behavior for list-style-position:outside in
> WebKit. list-style-position:outside would, on the other hand, now be
> specified to apply the item's text-align to both the marker box and the item
> content, as is currently the case in IE, Opera and Firefox. This reason this
> was proposed is that with list items having text-align:start by default, the
> markers of lists containing opposite-direction items do not line up, even
> with ist-style-position:outside-parent, unless the WebKit approach is used.
>
> However, this reason would no longer apply if the default stylesheet could
> specify: li {list-style-position:outside-parent; text-align: match-parent}.
> For lists where all items have the same direction as the parent, such a
> change in the default stylesheet would have no visible effect at all, which
> is good. For lists where some items have the opposite direction, the default
> effect would be as follows (view in fixed-space font to get the intended
> effect):
>
> <ol dir=ltr style="text-align:start"><li>ltr text.</li><li>longer ltr
> text.</li><li dir=rtl>RTL TEXT.</li></ol>
> 1. ltr text.
> 2. longer ltr text.
> 3. .TXET LTR
>
> <ol dir=ltr style="text-align:end"><li>ltr text.</li><li>longer ltr
> text.</li><li dir=rtl>RTL TEXT.</li></ol>
>        1. ltr text.
> 2. longer ltr text.
>        3. .TXET LTR
>
> <ol dir=ltr style="text-align:center"><li>ltr text.</li><li>longer ltr
> text.</li><li dir=rtl>RTL TEXT.</li></ol>
>    1. ltr text.
> 2. longer ltr text.
>    3. .TXET LTR
> Is such a change to the default stylesheet ok by you?
> If so, do we need to get it into HTML5?

I support this change.  Once it appears in a public working draft
(which would be my responsibility) I also support filing a bug on
HTML5 to change the default UA stylesheet.

~TJ

Received on Monday, 15 November 2010 17:44:38 UTC