Hi Andreas, [EMAIL PROTECTED] a écrit : >> ----- Oorspronkelijk bericht ----- >> Van: Chris Bowditch [mailto:[EMAIL PROTECTED] >> > <snip /> >> AFAICT, I don't think you've got everything nailed down here. As Vincent >> already mentioned the ancestor reference area could change depending on >> the value of abolute-position property. So can you clarify exactly how >> you intend to resolve the % for top and left for all values of >> absolute-position property of BC? Thanks, > > Hmm, I don't completely agree with Vincent's assessment... > > absolute-position="absolute" > -> The area's position (and possibly size) is specified with the "left", > "right", "top", and "bottom" properties. These properties specify offsets > with respect to the area's nearest ancestor reference area. > > absolute-position="fixed" > -> The area's position is calculated according to the "absolute" model... > > Whatever follows in that second definition is irrelevant wrt determining the > base for percentage values to compute the initial offset (or IOW: determining > which is the nearest ancestor reference area)
Indeed, you're right. In fact we don't have to care about the "fixed" value for absolute-position, because it doesn't apply to most of our renderers (which belong to the paged media category). The only renderer which would be concerned is the AWT previewer, but that's another question. (Re-reading the definition of "fixed" it actually doesn't make any sense to me. The position is computed WRT the nearest ancestor ref-area, but then it shouldn't move WRT the viewport. What if the ref-area appears only when we start scrolling? Should the fixed area already be there, or suddenly appear, or whatever? grrr) So I agree with you that offsets should always start from the edges of the nearest ref-area ancestor... > Leaves my original question: > What I'm still not sure about is: > "Absolutely positioned areas are taken out of the normal flow." > Does that mean that percentages on any block-container with > position="absolute" should always be based on the containing page? ... and I agree with you that if they are specified as percentages that's unclear whether the percentage refers to the ref-area or the containing block :-\ > Any other (dissenting) thoughts? If no other opinion comes up in the next few days I'll raise the question on the xsl-editors list. Vincent