I'm not sure here. The fo:external-graphic uses the large-allocation-rectangle
(§ 6.6.5), that comprises padding and border. This makes me say that in Manuel's
example the fo:block's bpd should be calculated with the second formula. The
fo:block's content forms a line whose line-stacking-strategy is max-height
(default). Thus its allocation rectangle should comprise the image's border &
padding (§ 4.5). And so does the block.
I may be wrong, as this part of the spec is still somewhat unclear to me.
Jeremias Maerki a écrit :
Indeed, the normal allocation rectangle of an inline area is different
than the one of a block area. See 4.3.2. Geometric Definitions in the
Border and padding for an inline area seem to be outside the allocation
rectangle in before and after directions. Interesting.
On 01.09.2005 17:29:50 Manuel Mall wrote:
I have a follow-up question on this. If we have something as simple(?)
would you expect the whole image including padding and borders to be
within the bounds of the enclosing block or only the actual image to be
in the block and the padding and borders to "stick out" at the top and
bottom. It seems xep takes the latter approach and I am very uncertain
in this area. Or to put it differently is the BPD of the enclosing
bpd = image height + line-spacing
bpd = image-height + top_and_bottom_borders + top_and_bottom_padding