On Thursday 2006-04-27 16:23 -0500, Boris Zbarsky wrote: > So the reflow branch code for reflowing an abs pos frame (in > nsAbsoluteContainingBlock::ReflowAbsoluteFrame) uses > > nsSize(aReflowState.mComputedWidth, NS_UNCONSTRAINEDSIZE) > > for the child reflow state. Two questions: > > 1) If the abs pos container is a positioned inline, > aReflowState.mComputedWidth > will be NS_INTRINSICSIZE. This doesn't look right to me. > 2) Shouldn't the available width be the containing block width if > available, in > this case? And if not available, then mComputedWidth + > mComputedPadding.LeftRight() ?
I agree that this seems wrong for inlines, and that it should include padding for blocks. But for inlines, according to CSS2.1, it *should* actually be based on the position of the inlines, not the blocks. http://www.w3.org/TR/CSS21/visudet.html#containing-block-details -David -- L. David Baron <URL: http://dbaron.org/ > Technical Lead, Layout & CSS, Mozilla Corporation
pgpd5bHMAOleS.pgp
Description: PGP signature
_______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

