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

Re: list-item alignment in CSS

From: David Perrell <davidp@earthlink.net>
Date: Tue, 3 Jun 1997 18:24:20 -0700
Message-Id: <199706040125.SAA19926@norway.it.earthlink.net>
To: <www-style@w3.org>, "Todd Fahrner" <fahrner@pobox.com>
Cc: <howcome@w3.org>
Todd Fahrner wrote:
> Note the alignment of the asterisks in the ascii-rendering. The style
> gone from floating "outside" the block to "inside", yet it is the
> rather than the marker that has shifted. This can't be right. I say
> should be corrected to:
> ---
>   * first list item
>     comes first
>   * second list item
>     comes second
>     * first list
>     item comes first
>     * second list
>     item comes second

I agree that would be a more useful interpretation, but it doesn't jive
with the spec as I read it. The above interpretation requires an
implicit floated :list-marker (or :before) pseudo-element and a
positive margin on LI. The "outside" example above would require the
list-marker to have a negative left margin equal to the positive left
margin of LI. And to accommodate NSN's treatment of ordered lists (with
numbers flush right in a column), the list-marker pseudo-elements would
need a fixed width equal to the margin.

List-item behavior can be defined without a 'block-indent' property,
but parts of the spec would need serious editing. My view is that the
addition of block-indent doesn't disrupt current spec because the
current spec implies that the list-marker -- not the list-item content
-- is flush to the list-item's margin.

It's too late to argue against implementation of the current list-item
spec. Keep the current spec for backward compatibility but define it in
terms of more general properties such that future enhancements aren't
full of unnecessary 'applies to' exceptions.

David Perrell
Received on Tuesday, 3 June 1997 21:25:12 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:43 UTC