Jeremias,

In the SpaceResolver constructor the pendingaftermarks are added to
the start of first:

first.addAll(0, breakPoss.getPendingAfterMarks());

I think they should be added to the end. Also I think the order of the
pendingaftermarks in BreakElement is wrong, or they should be added to
first in reverse order.

This is a test case:

<fo:block space-after="10pt" space-before="10pt"
  background-color="#555555">
  <fo:block space-after="7pt" space-before="7pt"
    background-color="#555555">
    <fo:block space-after="5pt" background-color="#656565">
      Some text.
    </fo:block>
    <fo:block space-before="4pt" background-color="#757575">
      Some text.
    </fo:block>
  </fo:block>
</fo:block>

Regards, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.nl

Reply via email to