Actually the problem is more general than this. Suppose you have a nested set of DIVs with borders, padding and margins, each DIV nested inside the last. In the interior there's a list of regular lines. When you check to see whether the last line fits, you need to consider that placing the line will force the bottom margins, padding and borders of the outer DIVs to be placed there too, so their height must be included when we check the available height.
I assume we don't really plan to allow page breaks in mid-padding/border, so to say? Except in extreme cases (borders a quarter page wide) that probably leads to suboptimal rendering...
-Boris _______________________________________________ mozilla-layout mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-layout
