W3C home > Mailing lists > Public > www-style@w3.org > March 2011

Re: root list item Re: [CSS21] 12.5 Lists

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 14 Mar 2011 13:45:22 -0400
Message-ID: <4D7E5432.5020607@mit.edu>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: fantasai <fantasai.lists@inkedblade.net>, Peter Moulder <peter.moulder@monash.edu>, www-style@w3.org
On 3/14/11 1:35 PM, Tab Atkins Jr. wrote:
> This seems irrelevant, unless it was fixed in FF4 (I'm using 3.6 on my
> Windows box still).

Uh, yeah.  Don't do that.  What's with all these people testing old UA 
versions all the time?  ;)

See https://bugzilla.mozilla.org/show_bug.cgi?id=571281

I suppose you could also have used Firefox 3, though, in which case it 
would have worked correctly for you again... ;)  As long as you're going 
to use out-of-date versions, why not _really_ go out-of-date?

>> Note that I'm not sure what you mean by "positions outside markers according
>> to the list-item's first line" here, but in Gecko the _vertical_ position is
>> affected by the baseline of the first line while the _horizontal_ position
>> is not affected by the first line at all.  In particular, unlike Opera
>> text-indent does not affect _outside_ markers in Gecko.
> This doesn't seem to be true.  In particular, setting text-align:right
> makes the outside list marker follow the text to the right.

Ah, indeed.  So to be a bit more precise, the marker is attached to the 
left edge of the bounding box of the content on the first line. 
text-align aligns the entire bounding box, so moves the marker.

> It also pays at least some attention to text-indent; if you combine
> text-indent and text-align:right, the outside list marker moves away
> from the text an amount equal to the text-indent. (Again, this is FF
> 3.6.)

More precisely, the text moves by the text-indent while the marker is 
not affected by the text-indent.  And this happens because text-indent 
does not shift the position of the left edge of the bounding box for the 
line when direction is ltr in Gecko (instead it increases the width of 
the bounding box, if the text is not long enough to wrap).

Most of that is implementation details, though....

Received on Monday, 14 March 2011 17:46:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:44 UTC