> -----Original Message-----
> From: J.Pietschmann [mailto:[EMAIL PROTECTED]
> Sent: April 24, 2002 5:17 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Spaces and precedence
>
> Ralf Steppacher wrote:
> > I have a short question about spaces and precedences:
> > What I want is to suppress additional space if one headline directly
> > follows another.
> >
> > To achieve this I wrote the template with FOs below but it does
> not work
> > (I played a bit with attributes and values and could not find any other
> > working solution using precendences). Could anybody please tell me
> > whether my FO is wrong or this is a limitation of FOP?
>
> After having read the spec several times, i got the impression
> that space-*.precedence is for prioritizing space reservations
> coming from stuff from the same area.
>
> Roughly:
>    <fo:block space-before="10pt" precedence="1">
>      <fo:block space-before="5pt" precedence="2">
>        stuff
> ...
> will put "stuff" 5pt after preceding content.
>
> This means, precedence can't be used to collapse space-after
> and space-before of consecutive blocks.

Assuming Western reference-orienattion and writing mode, clause 3a of
Section 4.2.5 indicates that if the border-after-width and padding-after of
the first block are zero, and the border-before-width and padding-before of
the second block are zero, that we have a block-stacking constraint.

In which case the precedence on the space-fater of the one and the
space-before of the other can be used precisely to achieve this collapsing
effect.

Regards,
Arved Sandstrom

Reply via email to