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

Re: list-style-position and text-align

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 23 Nov 2010 01:07:18 -0500
Message-ID: <4CEB5A16.50302@mit.edu>
To: David Hyatt <hyatt@apple.com>
CC: www-style list <www-style@w3.org>
On 11/23/10 12:58 AM, David Hyatt wrote:
> The fact that IE has a quirk for it also makes me think it was considered important for compatibility.

Actually, IE quirks mode is more or less just "render like IE6", so you 
can't read much into whether IE does something in quirks mode past the 
fact that IE6 did it.

> I assume that Gecko does align the bullet with a nested block's first line box in the list-style-position:outside case without putting the bullet on a line by itself?

Yep.

> It seems like some of the spec ambiguity could be fixed by establishing that the principal block box for the marker box isn't necessarily the list item

That then involves defining what the box _is_.  This sounds like it 
could get pretty complicated, especially if list-style-position:inside 
blocks are nested.

> In WebKit at least, the marker is actually placed on the line that it is aligned with in both the inside and outside cases.

I'm having trouble telling what webkit is actually doing based on this 
testcase:

<body>
   <ul style="list-style-position: inside">
     <li>
       <ul>
         <li>
           <div style="">aaa</div>
</body>

It seems like the outer bullet is placed on a line by itself but the 
inner is not, right?

> The only differences between the two are that the outside marker doesn't affect the placement of objects on the line, and the outside marker gets a paint translation applied to shove it outside.

The outside bit there seems like an implementation detail... In Gecko, 
the same effect is achieved through totally different means.

-Boris
Received on Tuesday, 23 November 2010 06:07:52 GMT

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