W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: List item and marker box layout

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 21 Jul 2008 18:00:35 -0700
To: www-style@w3.org
Message-ID: <20080722010035.GA29497@pickering.dbaron.org>

On Monday 2008-07-21 16:31 -0700, Arron Eicholz wrote:
> Proposal:
>   Add to definition for 'outside': "The size of the marker box
>   may affect the height of the principal block box and/or the
>   height of its first line box."

I agree that it should affect the height of the div.  I think this
effect should normally happen through influence on the height of a
line box (the same line box that the marker aligns with).  Did you
test what happens when there is no appropriate line box present?

I'd note that if the list-item's first child is a block, the
line-box in question can be inside that block (or its first child
block, etc.).

Are there tests that show whether the height increase happens
through increasing the height of the line box in the case where that
child block has a smaller font-size (and thus smaller line-height)?
(This can be tested by giving the nested block a background and
seeing if its top lines up with the top of its parent.)

Are there tests that show whether the height increase happens
through increasing the height of a line box in the case where there
would otherwise be no line box?  This can be tested in the nested
block case by giving the inner block a background, and without
nested blocks by looking at baseline-alignment of an inline-block
containing such a list-item.


If there's interoperability on these cases, I suspect we'd want to
stick to the interoperable behavior, but if there isn't, I think
we should discuss which we prefer.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Tuesday, 22 July 2008 01:01:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT