after block</fo:inline>
After inline
</fo:block>
+ <fo:block>
+ <fo:inline background-color="blue">Before inline
+ <fo:inline background-color="red"><fo:block background-color="yellow">starting with a block</fo:block>
+ after block</fo:inline>
+ After inline</fo:inline>
+ </fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</fo>
<checks>
<element-list category="breaker">
+ <box w="12000"/>
+ <penalty w="0" p="0"/>
+ <box w="12000"/>
+ <penalty w="0" p="0"/>
+ <box w="12000"/>
+ <penalty w="0" p="0"/>
<box w="12000"/>
<penalty w="0" p="0"/>
<box w="12000"/>
<penalty w="0" p="-1000"/>
</element-list>
+ <!-- first block -->
<eval expected="Before inline"
xpath="//flow/block[1]/lineArea[1]/text[1]"/>
- <true xpath="boolean(//flow/block/lineArea[2]/inlineblockparent[1])"/>
+ <true xpath="boolean(//flow/block[1]/lineArea[2]/inlineblockparent[1])"/>
<eval expected="starting with a block"
xpath="//flow/block[1]/lineArea[2]/inlineblockparent[1]/block[1]/lineArea[1]/text[1]"/>
- <true xpath="boolean(//flow/block/lineArea[3]/inlineparent[1])"/>
+ <true xpath="boolean(//flow/block[1]/lineArea[3]/inlineparent[1])"/>
<eval expected=" After inline"
xpath="//flow/block[1]/lineArea[3]/text[1]"/>
<eval expected="after block"
xpath="//flow/block[1]/lineArea[3]/inlineparent[1]/text[1]"/>
+
+ <!-- second block -->
+ <eval expected="Before inline"
+ xpath="//flow/block[2]/lineArea[1]/inlineparent[1]/text[1]"/>
+ <true xpath="boolean(//flow/block[2]/lineArea[2]/inlineparent[1]/inlineblockparent[1])"/>
+ <eval expected="starting with a block"
+ xpath="//flow/block[2]/lineArea[2]/inlineparent[1]/inlineblockparent[1]/block[1]/lineArea[1]/text[1]"/>
+ <true xpath="boolean(//flow/block[2]/lineArea[3]/inlineparent[1]/inlineparent[1])"/>
+ <eval expected=" After inline"
+ xpath="//flow/block[2]/lineArea[3]/inlineparent[1]/text[1]"/>
+ <eval expected="after block"
+ xpath="//flow/block[2]/lineArea[3]/inlineparent[1]/inlineparent[1]/text[1]"/>
</checks>
</testcase>