Re: [css3-lists] Published as WD!

On Sun, Jul 17, 2011 at 7:02 AM, Aharon (Vladimir) Lanin
<aharon@google.com> wrote:
> I've just re-read the current (dated July 14) lists module spec after
> a long hiatus and am trying to make sure I understand what the bottom
> line is re mixed-direction lists. Please correct me where I go wrong.

Thanks for the review!


> 1. For a list-item-position:outside list item, the content of a marker
> is in a separate paragraph for bidi purposes. Its paragraph direction
> is taken from the list container's direction.

The spec didn't have these details, but it does now.


> 2. For a list-item-position:outside list item, the marker box is
> horizontally flush against one side of the list item box. It is the
> "start" side relative to the list container's direction. Thus, the
> list item's text-align affects the position of both the list item and
> the marker.

I don't understand what you're saying here.  The second and third
sentences appear to be completely unrelated to each other. (And the
third sentence is wrong - the list item's text-align has no effect on
the position of the marker.)


> 3. Thus, for a list-item-position:outside list item, the list item's
> direction has no effect whatsoever on the marker.

Yes.


> Now, a question:
>
> 4. Under the current proposal, is there currently any way to get the
> marker placed horizontally flush against the "start" side relative to
> the *list item*'s direction, as list-item-position:hanging would have
> done? Sometimes, apparently, people do want the markers to switch
> sides in a mixed-direction list.

No.  I did have a 'hanging' value that would do this, but we dropped
it due to lack of use-cases.  Can you give examples of places where
people actually want this, or the behavior is clearly reasonably
attractive?  (This is roughly the current behavior of Firefox and
Opera with outside list markers.)


> Now, two small proposals:
>
> 5. Is there any objection to HTML5 specifying in the default style
> sheet li {text-align:match-parent;}? I have suggested this in the
> past, and http://www.w3.org/Bugs/Public/show_bug.cgi?id=10824 is still
> open for this purpose.

Is this actually required anymore?  Outside markers now pay attention
to the parent's direction without relying on text-align at all (it's
part of the details of "position:marker").  Was there any other
use-case for match-parent?


> 6. Given that markers are often counters with strong-directional
> contain (e.g. Latin letters), it is important that
> list-item-position:inside marker content be isolated for bidi purposes
> from what follows it in the list item, at least by default. Should
> this be done by making unicode-bidi:isolate be the default for
> ::marker?

I don't have any problem with it.  Do inside list markers currently
affect bidi resolution in browsers?  I don't know enough about bidi to
really test this.

~TJ

Received on Tuesday, 19 July 2011 18:57:55 UTC