title: External-graphic has space above even though I've set it to zero
body: <p>My XSL-FO template has an image in the footer of each page:</p>
  <pre><code>&lt;fo:block-container left=&quot;0mm&quot; top=&quot;10mm&quot; absolute-position=&quot;absolute&quot; width=&quot;210mm&quot; height=&quot;10mm&quot; border=&quot;0.1pt black solid&quot; margin=&quot;0mm&quot; padding=&quot;0mm&quot; space-before=&quot;0mm&quot;&gt;
      &lt;fo:block border=&quot;0.1pt green solid&quot; margin=&quot;0mm&quot; padding=&quot;0mm&quot; space-before=&quot;0mm&quot;&gt;
          &lt;fo:external-graphic src=&quot;grayblock.pdf&quot;  height=&quot;10mm&quot; content-height=&quot;scale-to-fit&quot; border=&quot;0.1pt blue solid&quot; margin=&quot;0mm&quot; padding=&quot;0mm&quot; space-before=&quot;0mm&quot;/&gt;
      &lt;/fo:block&gt;
  &lt;/fo:block-container&gt;
  </code></pre>
  <p>I expect the top of the image to be aligned with the top of the block-container. But this is the result I get:</p>
  <p><a href="https://i.stack.imgur.com/8QxHA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8QxHA.png" alt="enter image description here" /></a></p>
  <p>My image (the blue/gray rectangle) starts about 0.5 mm below the top of the block-container (the distance between the black line and the blue/gray rectangle).</p>
  <p>What I've tried:</p>
  <ul>
  <li>I inserted <code>margin=&quot;0mm&quot; padding=&quot;0mm&quot; space-before=&quot;0mm&quot;</code> to make sure the block-container, block and external-graphic don't inherit any margins, padding etc. from ancestors. That didn't change the result.</li>
  <li>Adding a negative margin/padding doesn't move the external-graphic up.</li>
  <li>setting the borders to &quot;none&quot; doesn't resolve the problem. I've added the borders to visualize which of the elements is causing the problem.</li>
  </ul>
  <p>Normally, this 0.5 mm gap doesn't matter much. In this case, I'm trying to align two block-containers and their contents, and the difference is making it difficult to get them to line up exactly.</p>
  <p>How do I eliminate this gap above the external-graphic?</p>
  <p>(I'm using Antenna House XSL Formatter 6.1)</p>