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

Re: Positioning pf a Line Box

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 30 Jun 2008 17:30:47 -0700
To: Garrett Smith <dhtmlkitchen@gmail.com>
Cc: Www-style <www-style@w3.org>
Message-ID: <20080701003047.GA18368@pickering.dbaron.org>

On Monday 2008-06-30 17:19 -0700, Garrett Smith wrote:
> How does a line box get it's - top - value?

I'm not sure what you mean.  (In fact, I can't even parse the

> In firefox, the top value seems to include the parent line boxes leading.

Do you mean inline boxes rather than line boxes?  Line boxes
represent the lines of a block (not elements in the tree); inline
boxes represent elements with display:inline.

> Is there a way to calculate the position of an element and assert that
> that calculation is correct?

Are you talking about writing test cases?  In some specific

> IOW, If I have a line box B in a line box P, and B has text-align:
> top, it seems that B's top value is starting at the leading P's line
> box.

What's a "leading P"?


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Tuesday, 1 July 2008 00:31:25 UTC

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