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.
Alternatively each DIV could subtract its padding, borders etc from the available height before reflowing its child. But that's wrong, because we could fit more children as long as the last child gets pushed to the next in flow. This might be tied up with how we should handle the page-break properties when we get around to that. _______________________________________________ mozilla-layout mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-layout
