diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-10-24 09:21:26 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-10-24 09:21:26 +0000 |
commit | 829cd8e6757340bbdcb53d59e0f0ed5948b9e2c4 (patch) | |
tree | 866c74ce05dc718cca64a2aafc0d157d9cea8134 /test/layoutengine | |
parent | 94b582d886ed3dcc4222c6fc1bc3f57b48bede90 (diff) | |
download | xmlgraphics-fop-829cd8e6757340bbdcb53d59e0f0ed5948b9e2c4.tar.gz xmlgraphics-fop-829cd8e6757340bbdcb53d59e0f0ed5948b9e2c4.zip |
Merged work on Temp_SpaceResolution branch into trunk (-r 320826:327988).
Source: http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_SpaceResolution/
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328010 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine')
67 files changed, 4516 insertions, 2248 deletions
diff --git a/test/layoutengine/disabled-testcases.txt b/test/layoutengine/disabled-testcases.txt index 91db41057..6159cda4b 100644 --- a/test/layoutengine/disabled-testcases.txt +++ b/test/layoutengine/disabled-testcases.txt @@ -1,11 +1,12 @@ block-container_reference-orientation_bug36391.xml +block-container_space-before_space-after_3.xml block_font-stretch.xml block_padding_2.xml -block_space-before_space-after_2.xml -block_space-before_space-after_3.xml +block_space-before_space-after_8.xml block_word-spacing.xml block_word-spacing_text-align_justify.xml external-graphic_oversized.xml +footnote_space-resolution.xml inline-block_keep-together.xml inline_block_nested_3.xml inline-container_block_nested.xml @@ -16,7 +17,6 @@ inline_word-spacing_text-align_justify.xml leader-alignment.xml list-block_keep-with-previous.xml list-item_block_keep-with-previous.xml -list-item_space-before_space-after_2.xml page-breaking_4.xml page-breaking_6.xml page-height_indefinite_simple.xml @@ -31,6 +31,7 @@ table_border-collapse_collapse_1.xml table_border-collapse_collapse_2.xml table_border_padding.xml table-cell_block_keep-with-previous.xml +table-cell_border_padding_conditionality.xml table-column_first-row-width.xml table-header_background-image.xml table-row_keep-with-previous.xml diff --git a/test/layoutengine/testcases/block-container_display-align_space-before.xml b/test/layoutengine/testcases/block-container_display-align_space-before.xml index be7035e9e..b483edbd3 100644 --- a/test/layoutengine/testcases/block-container_display-align_space-before.xml +++ b/test/layoutengine/testcases/block-container_display-align_space-before.xml @@ -52,77 +52,77 @@ </fo> <checks> <!-- first block-container --> - <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@is-viewport-area"/> - <eval expected="[1.0 0.0 0.0 1.0 0.0 0.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ctm"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/> + <true xpath="//flow/block[1]/@is-viewport-area"/> + <eval expected="[1.0 0.0 0.0 1.0 0.0 0.0]" xpath="//flow/block[1]/@ctm"/> + <eval expected="120000" xpath="//flow/block[1]/@ipd"/> + <eval expected="120000" xpath="//flow/block[1]/@ipda"/> + <eval expected="80000" xpath="//flow/block[1]/@bpd"/> + <eval expected="80000" xpath="//flow/block[1]/@bpda"/> <!-- -> reference area --> - <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@is-reference-area"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipd"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipda"/> - <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bpd"/> - <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bpda"/> + <true xpath="//flow/block[1]/block[1]/@is-reference-area"/> + <eval expected="120000" xpath="//flow/block[1]/block[1]/@ipd"/> + <eval expected="120000" xpath="//flow/block[1]/block[1]/@ipda"/> + <eval expected="28800" xpath="//flow/block[1]/block[1]/@bpd"/> + <eval expected="28800" xpath="//flow/block[1]/block[1]/@bpda"/> <!-- space-before of second block-container --> - <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/> + <eval expected="10000" xpath="//flow/block[2]/@space-before"/> <!-- second block-container --> - <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@is-viewport-area"/> - <eval expected="[0.0 -1.0 1.0 0.0 0.0 80000.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ctm"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipd"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/> + <true xpath="//flow/block[2]/@is-viewport-area"/> + <eval expected="[0.0 -1.0 1.0 0.0 0.0 80000.0]" xpath="//flow/block[2]/@ctm"/> + <eval expected="120000" xpath="//flow/block[2]/@ipd"/> + <eval expected="120000" xpath="//flow/block[2]/@ipda"/> + <eval expected="80000" xpath="//flow/block[2]/@bpd"/> + <eval expected="100000" xpath="//flow/block[2]/@bpda"/> <!-- -> reference area --> - <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@is-reference-area"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@ipd"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@ipda"/> - <eval expected="43200" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@bpd"/> - <eval expected="43200" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@bpda"/> + <true xpath="//flow/block[2]/block[1]/@is-reference-area"/> + <eval expected="80000" xpath="//flow/block[2]/block[1]/@ipd"/> + <eval expected="80000" xpath="//flow/block[2]/block[1]/@ipda"/> + <eval expected="43200" xpath="//flow/block[2]/block[1]/@bpd"/> + <eval expected="43200" xpath="//flow/block[2]/block[1]/@bpda"/> <!-- space-after of second block-container --> - <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/> + <eval expected="10000" xpath="//flow/block[2]/@space-after"/> <!-- third block-container --> - <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@is-viewport-area"/> - <eval expected="[-1.0 -0.0 0.0 -1.0 120000.0 80000.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ctm"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipd"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipda"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpd"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpda"/> + <true xpath="//flow/block[3]/@is-viewport-area"/> + <eval expected="[-1.0 -0.0 0.0 -1.0 120000.0 80000.0]" xpath="//flow/block[3]/@ctm"/> + <eval expected="120000" xpath="//flow/block[3]/@ipd"/> + <eval expected="120000" xpath="//flow/block[3]/@ipda"/> + <eval expected="80000" xpath="//flow/block[3]/@bpd"/> + <eval expected="80000" xpath="//flow/block[3]/@bpda"/> <!-- -> reference area --> - <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@is-reference-area"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@ipd"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@ipda"/> - <eval expected="61600" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@bpd"/> - <eval expected="61600" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@bpda"/> + <true xpath="//flow/block[3]/block[1]/@is-reference-area"/> + <eval expected="120000" xpath="//flow/block[3]/block[1]/@ipd"/> + <eval expected="120000" xpath="//flow/block[3]/block[1]/@ipda"/> + <eval expected="61600" xpath="//flow/block[3]/block[1]/@bpd"/> + <eval expected="61600" xpath="//flow/block[3]/block[1]/@bpda"/> <!-- contents (spacer first, then three lines) --> - <eval expected="18400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[1]/@bpda"/> - <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[2]/@bpda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[3]/@bpda"/> + <eval expected="18400" xpath="//flow/block[3]/block[1]/block[1]/@bpda"/> + <eval expected="28800" xpath="//flow/block[3]/block[1]/block[2]/@bpda"/> + <eval expected="14400" xpath="//flow/block[3]/block[1]/block[3]/@bpda"/> <!-- space-before of fourth block-container --> - <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpda"/> + <eval expected="10000" xpath="//flow/block[4]/@space-before"/> <!-- fourth block-container --> - <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@is-viewport-area"/> - <eval expected="[0.0 1.0 -1.0 0.0 120000.0 0.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ctm"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ipd"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ipda"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpd"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpda"/> + <true xpath="//flow/block[4]/@is-viewport-area"/> + <eval expected="[0.0 1.0 -1.0 0.0 120000.0 0.0]" xpath="//flow/block[4]/@ctm"/> + <eval expected="120000" xpath="//flow/block[4]/@ipd"/> + <eval expected="120000" xpath="//flow/block[4]/@ipda"/> + <eval expected="80000" xpath="//flow/block[4]/@bpd"/> + <eval expected="90000" xpath="//flow/block[4]/@bpda"/> <!-- -> reference area --> - <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/block[1]/@is-reference-area"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/block[1]/@ipd"/> - <eval expected="80000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/block[1]/@ipda"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/block[1]/@bpd"/> - <eval expected="120000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/block[1]/@bpda"/> + <true xpath="//flow/block[4]/block[1]/@is-reference-area"/> + <eval expected="80000" xpath="//flow/block[4]/block[1]/@ipd"/> + <eval expected="80000" xpath="//flow/block[4]/block[1]/@ipda"/> + <eval expected="120000" xpath="//flow/block[4]/block[1]/@bpd"/> + <eval expected="120000" xpath="//flow/block[4]/block[1]/@bpda"/> <!-- contents (spacer first, then three lines) --> - <eval expected="76800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/block[1]/block[1]/@bpda"/> - <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/block[1]/block[2]/@bpda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/block[1]/block[3]/@bpda"/> + <eval expected="76800" xpath="//flow/block[4]/block[1]/block[1]/@bpda"/> + <eval expected="28800" xpath="//flow/block[4]/block[1]/block[2]/@bpda"/> + <eval expected="14400" xpath="//flow/block[4]/block[1]/block[3]/@bpda"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/block-container_space-before_space-after_1.xml b/test/layoutengine/testcases/block-container_space-before_space-after_1.xml new file mode 100644 index 000000000..37b7b87c2 --- /dev/null +++ b/test/layoutengine/testcases/block-container_space-before_space-after_1.xml @@ -0,0 +1,160 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks space properties on block-container. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" id="retain"> + <fo:flow flow-name="xsl-region-body"> + <fo:block-container space-before.optimum="20pt" space-before.conditionality="retain" space-after.optimum="10pt" space-after.conditionality="retain"> + <fo:block text-align="justify"> +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + </fo:block> + </fo:block-container> + <fo:block space-before.optimum="10pt" space-before.conditionality="retain" space-after.optimum="20pt" space-after.conditionality="retain"> +Two blocks, testing conditionality="retain". + </fo:block> + </fo:flow> + </fo:page-sequence> + <fo:page-sequence master-reference="normal" id="discard"> + <fo:flow flow-name="xsl-region-body"> + <fo:block-container space-before.optimum="20pt" space-before.conditionality="discard" space-after.optimum="10pt" space-after.conditionality="discard"> + <fo:block text-align="justify"> +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + </fo:block> + </fo:block-container> + <fo:block space-before.optimum="10pt" space-before.conditionality="discard" space-after.optimum="20pt" space-after.conditionality="discard"> +Two blocks, testing conditionality="discard". + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker" id="retain"> + <box w="0"/> <!-- Helper box bearing the SpaceHandlingPosition and making sure the glue gets processed --> + <penalty w="0" p="INF"/> + <glue w="20000" y="0" z="20000"/> + + <box w="14400"/> + <box w="14400"/> + + <penalty w="0" p="INF"/> + <glue w="10000" y="0" z="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000" y="0" z="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000" y="0" z="20000"/> + + <box w="14400"/> + + <penalty w="0" p="INF"/> + <glue w="10000" y="0" z="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000" y="0" z="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000" y="0" z="20000"/> + + <box w="14400"/> + + <!-- skip three more lines --> + <skip>8</skip> + <skip>8</skip> + <skip>8</skip> + + <penalty w="0" p="INF"/> + <glue w="10000" y="0" z="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000" y="0" z="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000" y="0" z="20000"/> + + <box w="14400"/> + <box w="14400"/> + + <penalty w="0" p="INF" aux="true"/> + <glue w="10000" aux="true"/> + <penalty w="0" p="0"/> + <glue w="-10000" aux="true"/> + + <box w="0" aux="true"/> + <penalty w="0" p="INF" aux="true"/> + <glue w="10000" aux="true"/> + + <box w="14400"/> <!-- second block --> + + <box w="0" aux="true"/> + <penalty w="0" p="INF" aux="true"/> + <glue w="20000" aux="true"/> + + <box w="0" aux="true"/> <!-- This is used to make sure the preceding glue is not cut off --> + + <skip>3</skip> + </element-list> + <element-list category="breaker" id="discard"> + <box w="0"/> <!-- Helper box used to notify the LM for the addAreas stage about the discarded spaces --> + <box w="14400"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <glue w="10000"/> + + <box w="14400"/> <!-- second block --> + + <box w="0"/> <!-- SpaceHandlingPosition-bearing helper box --> + + <skip>3</skip> + </element-list> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/block-container_space-before_space-after_2.xml b/test/layoutengine/testcases/block-container_space-before_space-after_2.xml new file mode 100644 index 000000000..d742b3e85 --- /dev/null +++ b/test/layoutengine/testcases/block-container_space-before_space-after_2.xml @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks block-level space properties. Demonstrates that spaces are repeated on every generated area. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="30pt"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:flow flow-name="xsl-region-body" line-height="10pt" font-size="9pt"> + <fo:block-container space-before="5pt" space-before.conditionality="retain" background-color="yellow"> + <fo:block>line 1</fo:block> + <fo:block>line 2</fo:block> + <fo:block>line 3</fo:block> + <fo:block>line 4</fo:block> + <fo:block>line 5</fo:block> + </fo:block-container> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker"> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + <penalty w="0" p="0"/> + <glue w="-5000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + <penalty w="0" p="0"/> + <glue w="-5000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + <penalty w="0" p="0"/> + <glue w="-5000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + <penalty w="0" p="0"/> + <glue w="-5000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + + <skip>3</skip> + </element-list> + <eval expected="3" xpath="count(//pageViewport)"/> + <eval expected="5000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="5000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="5000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="1" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block)"/> + <eval expected="1" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block)"/> + <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block)"/> + <eval expected="2" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block)"/> + <eval expected="2" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block)"/> + <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block)"/> + + </checks> +</testcase> diff --git a/test/layoutengine/testcases/block-container_space-before_space-after_3.xml b/test/layoutengine/testcases/block-container_space-before_space-after_3.xml new file mode 100644 index 000000000..6e9d607d7 --- /dev/null +++ b/test/layoutengine/testcases/block-container_space-before_space-after_3.xml @@ -0,0 +1,126 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks space properties on block-containers. The focus is on space properties on content inside the block-containers. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" id="no-height"> + <fo:flow flow-name="xsl-region-body" line-height="10pt" font-size="9pt"> + <fo:block-container space-before="1em" background-color="yellow" id="page1-bc1"> + <fo:block space-before="1em">line 1</fo:block> + <fo:block>line 2</fo:block> + </fo:block-container> + <fo:block>A block between block-containers.</fo:block> + <fo:block-container background-color="yellow" id="page1-bc2"> + <!-- ATM, the block-container without height behaves like a block which is wrong. It generates a viewport/reference pair. --> + <fo:block space-before="1em">line 1</fo:block> + <fo:block>line 2</fo:block> + </fo:block-container> + </fo:flow> + </fo:page-sequence> + <fo:page-sequence master-reference="normal" id="with-height"> + <fo:flow flow-name="xsl-region-body" line-height="10pt" font-size="9pt"> + <fo:block-container space-before="1em" height="50pt" background-color="yellow" id="page2-bc1"> + <fo:block space-before="1em">line 1</fo:block> + <fo:block>line 2</fo:block> + </fo:block-container> + <fo:block>A block between block-containers.</fo:block> + <fo:block-container height="50pt" background-color="yellow" id="page2-bc2"> + <fo:block space-before="1em">line 1</fo:block> + <fo:block>line 2</fo:block> + </fo:block-container> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker" id="no-height"> + <box w="0"/> <!-- SpaceHandlingPosition --> + + <box w="10000"/> + <penalty w="0" p="0"/> + <box w="10000"/> + + <penalty w="0" p="0"/> + <box w="10000"/> <!-- block between block-containers --> + <penalty w="0" p="0"/> + + <box w="10000"/> + <penalty w="0" p="0"/> + <box w="10000"/> + + <skip>3</skip> + </element-list> + <element-list category="block-container" id="page1-bc1"> + <box w="0"/> <!-- SpaceHandlingPosition --> + + <box w="10000"/> + <penalty w="0" p="0"/> + <box w="10000"/> + + <skip>3</skip> + </element-list> + <element-list category="block-container" id="page1-bc2"> + <box w="0"/> <!-- SpaceHandlingPosition --> + + <box w="10000"/> + <penalty w="0" p="0"/> + <box w="10000"/> + + <skip>3</skip> + </element-list> + <element-list category="breaker" id="no-height"> + <box w="0"/> <!-- SpaceHandlingPosition --> + + <box w="50000"/> + + <penalty w="0" p="0"/> + <box w="10000"/> <!-- block between block-containers --> + <penalty w="0" p="0"/> + + <box w="50000"/> + + <skip>3</skip> + </element-list> + <element-list category="block-container" id="page2-bc1"> + <box w="0"/> <!-- SpaceHandlingPosition --> + + <box w="10000"/> + <box w="10000"/> + + <skip>3</skip> + </element-list> + <element-list category="block-container" id="page2-bc2"> + <box w="0"/> <!-- SpaceHandlingPosition --> + + <box w="10000"/> + <box w="10000"/> + + <skip>3</skip> + </element-list> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/block_border_padding.xml b/test/layoutengine/testcases/block_border_padding.xml index dd3278917..caf283542 100644 --- a/test/layoutengine/testcases/block_border_padding.xml +++ b/test/layoutengine/testcases/block_border_padding.xml @@ -48,107 +48,107 @@ </fo> <checks> <!-- First block, no gap --> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-start"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-end"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-before"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after"/> - <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bap"/> - <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/> - <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/> - <eval expected="34400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[1]/@border-start"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[1]/@border-end"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[1]/@border-before"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[1]/@border-after"/> + <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/@bap"/> + <eval expected="350000" xpath="//flow/block[1]/@ipd"/> + <eval expected="360000" xpath="//flow/block[1]/@ipda"/> + <eval expected="24400" xpath="//flow/block[1]/@bpd"/> + <eval expected="34400" xpath="//flow/block[1]/@bpda"/> <!-- Nested block of first block --> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-start"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/> - <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bap"/> - <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipd"/> - <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bpd"/> - <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bpda"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[1]/block[1]/@border-start"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[1]/block[1]/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[1]/block[1]/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[1]/block[1]/@border-after"/> + <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/block[1]/@bap"/> + <eval expected="340000" xpath="//flow/block[1]/block[1]/@ipd"/> + <eval expected="350000" xpath="//flow/block[1]/block[1]/@ipda"/> + <eval expected="14400" xpath="//flow/block[1]/block[1]/@bpd"/> + <eval expected="24400" xpath="//flow/block[1]/block[1]/@bpda"/> <!-- Second block, 5pt gap --> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@border-start"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@border-end"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@border-before"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@border-after"/> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@padding-start"/> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@padding-end"/> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@padding-before"/> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@padding-after"/> - <eval expected="10000 10000 10000 10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bap"/> - <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/> - <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/> - <eval expected="44400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[2]/@border-start"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[2]/@border-end"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[2]/@border-before"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[2]/@border-after"/> + <eval expected="5000" xpath="//flow/block[2]/@padding-start"/> + <eval expected="5000" xpath="//flow/block[2]/@padding-end"/> + <eval expected="5000" xpath="//flow/block[2]/@padding-before"/> + <eval expected="5000" xpath="//flow/block[2]/@padding-after"/> + <eval expected="10000 10000 10000 10000" xpath="//flow/block[2]/@bap"/> + <eval expected="340000" xpath="//flow/block[2]/@ipd"/> + <eval expected="360000" xpath="//flow/block[2]/@ipda"/> + <eval expected="24400" xpath="//flow/block[2]/@bpd"/> + <eval expected="44400" xpath="//flow/block[2]/@bpda"/> <!-- Nested block of second block --> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@border-start"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@border-after"/> - <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@bap"/> - <eval expected="330000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@ipd"/> - <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@bpd"/> - <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@bpda"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/block[1]/@border-start"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/block[1]/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/block[1]/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/block[1]/@border-after"/> + <eval expected="5000 5000 5000 5000" xpath="//flow/block[2]/block[1]/@bap"/> + <eval expected="330000" xpath="//flow/block[2]/block[1]/@ipd"/> + <eval expected="340000" xpath="//flow/block[2]/block[1]/@ipda"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpd"/> + <eval expected="24400" xpath="//flow/block[2]/block[1]/@bpda"/> <!-- third block, no gap between borders but margin around outer block --> <!-- space before block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/> + <eval expected="5000" xpath="//flow/block[3]/@space-before"/> <!-- actual block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@space-start"/> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@space-end"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@border-start"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@border-end"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@border-before"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@border-after"/> - <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bap"/> - <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/> - <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/> - <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/> - <eval expected="34400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/> + <eval expected="5000" xpath="//flow/block[3]/@space-start"/> + <eval expected="5000" xpath="//flow/block[3]/@space-end"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[3]/@border-start"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[3]/@border-end"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[3]/@border-before"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[3]/@border-after"/> + <eval expected="5000 5000 5000 5000" xpath="//flow/block[3]/@bap"/> + <eval expected="340000" xpath="//flow/block[3]/@ipd"/> + <eval expected="350000" xpath="//flow/block[3]/@ipda"/> + <eval expected="24400" xpath="//flow/block[3]/@bpd"/> + <eval expected="44400" xpath="//flow/block[3]/@bpda"/> <!-- space after block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpd"/> + <eval expected="5000" xpath="//flow/block[3]/@space-after"/> <!-- Nested block of third block --> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@border-start"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@border-after"/> - <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@bap"/> - <eval expected="330000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@ipd"/> - <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@bpd"/> - <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@bpda"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[3]/block[1]/@border-start"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[3]/block[1]/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[3]/block[1]/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[3]/block[1]/@border-after"/> + <eval expected="5000 5000 5000 5000" xpath="//flow/block[3]/block[1]/@bap"/> + <eval expected="330000" xpath="//flow/block[3]/block[1]/@ipd"/> + <eval expected="340000" xpath="//flow/block[3]/block[1]/@ipda"/> + <eval expected="14400" xpath="//flow/block[3]/block[1]/@bpd"/> + <eval expected="24400" xpath="//flow/block[3]/block[1]/@bpda"/> <!-- Fourth block, looks like the second block, but using margin on inner block instead of padding on outer block --> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@border-start"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@border-end"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@border-before"/> - <eval expected="(solid,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@border-after"/> - <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bap"/> - <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipd"/> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipda"/> - <eval expected="34400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpd"/> - <eval expected="44400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpda"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[4]/@border-start"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[4]/@border-end"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[4]/@border-before"/> + <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[4]/@border-after"/> + <eval expected="5000 5000 5000 5000" xpath="//flow/block[4]/@bap"/> + <eval expected="350000" xpath="//flow/block[4]/@ipd"/> + <eval expected="360000" xpath="//flow/block[4]/@ipda"/> + <eval expected="34400" xpath="//flow/block[4]/@bpd"/> + <eval expected="44400" xpath="//flow/block[4]/@bpda"/> <!-- Nested block of second block --> <!-- space before block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[1]/@bpd"/> + <eval expected="5000" xpath="//flow/block[4]/block[1]/@space-before"/> <!-- actual block --> - <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@space-start"/> - <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@space-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@border-start"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@border-after"/> - <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@bap"/> - <eval expected="330000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@ipd"/> - <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@bpd"/> - <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[2]/@bpda"/> + <eval expected="10000" xpath="//flow/block[4]/block[1]/@space-start"/> + <eval expected="10000" xpath="//flow/block[4]/block[1]/@space-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/block[1]/@border-start"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/block[1]/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/block[1]/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/block[1]/@border-after"/> + <eval expected="5000 5000 5000 5000" xpath="//flow/block[4]/block[1]/@bap"/> + <eval expected="330000" xpath="//flow/block[4]/block[1]/@ipd"/> + <eval expected="340000" xpath="//flow/block[4]/block[1]/@ipda"/> + <eval expected="14400" xpath="//flow/block[4]/block[1]/@bpd"/> + <eval expected="34400" xpath="//flow/block[4]/block[1]/@bpda"/> <!-- space after block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/block[3]/@bpd"/> + <eval expected="5000" xpath="//flow/block[4]/block[1]/@space-after"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/block_margin.xml b/test/layoutengine/testcases/block_margin.xml index 8259c0a0a..3723e5da0 100644 --- a/test/layoutengine/testcases/block_margin.xml +++ b/test/layoutengine/testcases/block_margin.xml @@ -40,33 +40,35 @@ </fo:root> </fo> <checks> - <!-- padding-left --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-start"/> - <eval expected="0 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bap"/> - <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/> - <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/> - <!-- padding-right --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-end"/> - <eval expected="0 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bap"/> - <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/> - <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/> - <!-- padding-top --> + <!-- margin-left --> + <eval expected="5000" xpath="//flow/block[1]/@space-start"/> + <eval expected="0 0 0 0" xpath="//flow/block[1]/@bap"/> + <eval expected="355000" xpath="//flow/block[1]/@ipd"/> + <eval expected="355000" xpath="//flow/block[1]/@ipda"/> + <eval expected="14400" xpath="//flow/block[1]/@bpd"/> + <eval expected="14400" xpath="//flow/block[1]/@bpda"/> + <!-- margin-right --> + <eval expected="5000" xpath="//flow/block[2]/@space-end"/> + <eval expected="0 0 0 0" xpath="//flow/block[2]/@bap"/> + <eval expected="355000" xpath="//flow/block[2]/@ipd"/> + <eval expected="355000" xpath="//flow/block[2]/@ipda"/> + <eval expected="14400" xpath="//flow/block[2]/@bpd"/> + <eval expected="14400" xpath="//flow/block[2]/@bpda"/> + <!-- margin-top --> <!-- space before block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/> + <eval expected="5000" xpath="//flow/block[3]/@space-before"/> <!-- actual block --> - <eval expected="0 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bap"/> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/> - <!-- padding-bottom --> + <eval expected="0 0 0 0" xpath="//flow/block[3]/@bap"/> + <eval expected="360000" xpath="//flow/block[3]/@ipda"/> + <eval expected="14400" xpath="//flow/block[3]/@bpd"/> + <eval expected="19400" xpath="//flow/block[3]/@bpda"/> + <!-- margin-bottom --> <!-- actual block --> - <eval expected="0 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bap"/> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpda"/> + <eval expected="0 0 0 0" xpath="//flow/block[4]/@bap"/> + <eval expected="360000" xpath="//flow/block[4]/@ipda"/> + <eval expected="14400" xpath="//flow/block[4]/@bpd"/> + <eval expected="19400" xpath="//flow/block[4]/@bpda"/> <!-- space after block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpd"/> + <eval expected="5000" xpath="//flow/block[4]/@space-after"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/block_margin_inherit.xml b/test/layoutengine/testcases/block_margin_inherit.xml index da022fb3b..ea43a11cd 100644 --- a/test/layoutengine/testcases/block_margin_inherit.xml +++ b/test/layoutengine/testcases/block_margin_inherit.xml @@ -41,23 +41,36 @@ </fo:root> </fo> <checks> - <eval expected="0" xpath="//flow/block[1]/@ipd"/> - <eval expected="18000" xpath="//flow/block[1]/@bpd"/> - <eval expected="324000" xpath="//flow/block[2]/@ipd"/> - <eval expected="18000" xpath="//flow/block[2]/@start-indent"/> - <eval expected="18000" xpath="//flow/block[2]/@end-indent"/> - <eval expected="18000" xpath="//flow/block[2]/@space-start"/> - <eval expected="18000" xpath="//flow/block[2]/@space-end"/> - <eval expected="0" xpath="//flow/block[2]/block[1]/@ipd"/> - <eval expected="18000" xpath="//flow/block[2]/block[1]/@bpd"/> - <eval expected="288000" xpath="//flow/block[2]/block[2]/@ipd"/> - <eval expected="36000" xpath="//flow/block[2]/block[2]/@start-indent"/> - <eval expected="36000" xpath="//flow/block[2]/block[2]/@end-indent"/> - <eval expected="36000" xpath="//flow/block[2]/block[2]/@space-start"/> - <eval expected="36000" xpath="//flow/block[2]/block[2]/@space-end"/> - <eval expected="0" xpath="//flow/block[2]/block[3]/@ipd"/> - <eval expected="18000" xpath="//flow/block[2]/block[3]/@bpd"/> - <eval expected="0" xpath="//flow/block[3]/@ipd"/> - <eval expected="18000" xpath="//flow/block[3]/@bpd"/> + <element-list category="breaker"> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="18000" y="0" z="0"/> + <box w="14400"/> + <box w="14400"/> + <penalty w="0" p="INF"/> + <glue w="18000" y="0" z="0"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <box w="14400"/> + <skip>3</skip> + </element-list> + + <true xpath="not(boolean(//flow/block[1]/@space-before))"/> <!-- space collapsed under space resolution rules --> + <eval expected="324000" xpath="//flow/block[1]/@ipd"/> + <eval expected="18000" xpath="//flow/block[1]/@start-indent"/> + <eval expected="18000" xpath="//flow/block[1]/@end-indent"/> + <eval expected="18000" xpath="//flow/block[1]/@space-start"/> + <eval expected="18000" xpath="//flow/block[1]/@space-end"/> + + <eval expected="18000" xpath="//flow/block[1]/block[1]/@space-before"/> + <eval expected="288000" xpath="//flow/block[1]/block[1]/@ipd"/> + <eval expected="36000" xpath="//flow/block[1]/block[1]/@start-indent"/> + <eval expected="36000" xpath="//flow/block[1]/block[1]/@end-indent"/> + <eval expected="36000" xpath="//flow/block[1]/block[1]/@space-start"/> + <eval expected="36000" xpath="//flow/block[1]/block[1]/@space-end"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/@space-after))"/> <!-- space collapsed under space resolution rules --> + <true xpath="not(boolean(//flow/block[1]/block[2]))"/> + + <eval expected="18000" xpath="//flow/block[1]/@space-after"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/block_margin_percentages.xml b/test/layoutengine/testcases/block_margin_percentages.xml index f3f9b531c..c84a816c5 100644 --- a/test/layoutengine/testcases/block_margin_percentages.xml +++ b/test/layoutengine/testcases/block_margin_percentages.xml @@ -41,23 +41,36 @@ </fo:root> </fo> <checks> - <eval expected="0" xpath="//flow/block[1]/@ipd"/> - <eval expected="18000" xpath="//flow/block[1]/@bpd"/> - <eval expected="324000" xpath="//flow/block[2]/@ipd"/> - <eval expected="18000" xpath="//flow/block[2]/@start-indent"/> - <eval expected="18000" xpath="//flow/block[2]/@end-indent"/> - <eval expected="18000" xpath="//flow/block[2]/@space-start"/> - <eval expected="18000" xpath="//flow/block[2]/@space-end"/> - <eval expected="0" xpath="//flow/block[2]/block[1]/@ipd"/> - <eval expected="16200" xpath="//flow/block[2]/block[1]/@bpd"/> - <eval expected="291600" xpath="//flow/block[2]/block[2]/@ipd"/> - <eval expected="34200" xpath="//flow/block[2]/block[2]/@start-indent"/> - <eval expected="34200" xpath="//flow/block[2]/block[2]/@end-indent"/> - <eval expected="34200" xpath="//flow/block[2]/block[2]/@space-start"/> - <eval expected="34200" xpath="//flow/block[2]/block[2]/@space-end"/> - <eval expected="0" xpath="//flow/block[2]/block[3]/@ipd"/> - <eval expected="16200" xpath="//flow/block[2]/block[3]/@bpd"/> - <eval expected="0" xpath="//flow/block[3]/@ipd"/> - <eval expected="18000" xpath="//flow/block[3]/@bpd"/> + <element-list category="breaker"> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="18000" y="0" z="0"/> + <box w="14400"/> + <box w="14400"/> + <penalty w="0" p="INF"/> + <glue w="18000" y="0" z="0"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <box w="14400"/> + <skip>3</skip> + </element-list> + + <eval expected="18000" xpath="//flow/block[1]/@space-before"/> + <eval expected="324000" xpath="//flow/block[1]/@ipd"/> + <eval expected="18000" xpath="//flow/block[1]/@start-indent"/> + <eval expected="18000" xpath="//flow/block[1]/@end-indent"/> + <eval expected="18000" xpath="//flow/block[1]/@space-start"/> + <eval expected="18000" xpath="//flow/block[1]/@space-end"/> + + <true xpath="not(boolean(//flow/block[1]/block[1]/@space-before))"/> <!-- space collapsed under space resolution rules --> + <eval expected="291600" xpath="//flow/block[1]/block[1]/@ipd"/> + <eval expected="34200" xpath="//flow/block[1]/block[1]/@start-indent"/> + <eval expected="34200" xpath="//flow/block[1]/block[1]/@end-indent"/> + <eval expected="34200" xpath="//flow/block[1]/block[1]/@space-start"/> + <eval expected="34200" xpath="//flow/block[1]/block[1]/@space-end"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/@space-after))"/> <!-- space collapsed under space resolution rules --> + <true xpath="not(boolean(//flow/block[1]/block[2]))"/> + + <eval expected="18000" xpath="//flow/block[1]/@space-after"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/block_margin_shorthands.xml b/test/layoutengine/testcases/block_margin_shorthands.xml index 8dc53fd90..25ac7d553 100644 --- a/test/layoutengine/testcases/block_margin_shorthands.xml +++ b/test/layoutengine/testcases/block_margin_shorthands.xml @@ -30,10 +30,15 @@ </fo:layout-master-set> <fo:page-sequence master-reference="normal" white-space-collapse="true"> <fo:flow flow-name="xsl-region-body"> + <fo:block border-before-style="solid" border-before-width="1pt"/> <!-- These are to avoid stacking constraints between tests --> <fo:block margin="5pt">all</fo:block> + <fo:block border-before-style="solid" border-before-width="1pt"/> <fo:block margin="0pt 5pt">left/right</fo:block> + <fo:block border-before-style="solid" border-before-width="1pt"/> <fo:block margin="5pt 0pt">top/bottom</fo:block> + <fo:block border-before-style="solid" border-before-width="1pt"/> <fo:block margin="1pt 2pt 3pt">three values</fo:block> + <fo:block border-before-style="solid" border-before-width="1pt"/> <fo:block>EOF</fo:block> </fo:flow> </fo:page-sequence> @@ -42,45 +47,48 @@ <checks> <!-- *** all *** --> <!-- space before block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/> + <eval expected="5000" xpath="//flow/block[2]/@space-before"/> <!-- actual block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-start"/> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-end"/> - <eval expected="0 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bap"/> - <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/> + <eval expected="5000" xpath="//flow/block[2]/@space-start"/> + <eval expected="5000" xpath="//flow/block[2]/@space-end"/> + <eval expected="0 0 0 0" xpath="//flow/block[2]/@bap"/> + <eval expected="350000" xpath="//flow/block[2]/@ipda"/> + <eval expected="14400" xpath="//flow/block[2]/@bpd"/> + <eval expected="24400" xpath="//flow/block[2]/@bpda"/> <!-- space after block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/> + <eval expected="5000" xpath="//flow/block[2]/@space-after"/> <!-- *** left/right *** --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@space-start"/> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@space-end"/> - <eval expected="0 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bap"/> - <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/> + <eval expected="5000" xpath="//flow/block[4]/@space-start"/> + <eval expected="5000" xpath="//flow/block[4]/@space-end"/> + <eval expected="0 0 0 0" xpath="//flow/block[4]/@bap"/> + <eval expected="350000" xpath="//flow/block[4]/@ipda"/> + <eval expected="14400" xpath="//flow/block[4]/@bpda"/> <!-- *** top/bottom *** --> <!-- space before block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpd"/> + <eval expected="5000" xpath="//flow/block[6]/@space-before"/> <!-- actual block --> - <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@space-start)"/> - <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@space-end)"/> - <eval expected="0 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bap"/> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpda"/> + <true xpath="not(//flow/block[6]/@space-start)"/> + <true xpath="not(//flow/block[6]/@space-end)"/> + <eval expected="0 0 0 0" xpath="//flow/block[6]/@bap"/> + <eval expected="360000" xpath="//flow/block[6]/@ipda"/> + <eval expected="14400" xpath="//flow/block[6]/@bpd"/> + <eval expected="24400" xpath="//flow/block[6]/@bpda"/> <!-- space after block --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpd"/> + <eval expected="5000" xpath="//flow/block[6]/@space-after"/> <!-- *** three values *** --> <!-- space before block --> - <eval expected="1000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bpd"/> + <eval expected="1000" xpath="//flow/block[8]/@space-before"/> <!-- actual block --> - <eval expected="2000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@space-start"/> - <eval expected="2000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@space-end"/> - <eval expected="0 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@bap"/> - <eval expected="356000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@bpda"/> + <eval expected="2000" xpath="//flow/block[8]/@space-start"/> + <eval expected="2000" xpath="//flow/block[8]/@space-end"/> + <eval expected="0 0 0 0" xpath="//flow/block[8]/@bap"/> + <eval expected="356000" xpath="//flow/block[8]/@ipda"/> + <eval expected="14400" xpath="//flow/block[8]/@bpd"/> + <eval expected="18400" xpath="//flow/block[8]/@bpda"/> <!-- space after block --> - <eval expected="3000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[10]/@bpd"/> + <eval expected="3000" xpath="//flow/block[8]/@space-after"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/block_padding_2.xml b/test/layoutengine/testcases/block_padding_2.xml index 73b430aa6..e64750785 100644 --- a/test/layoutengine/testcases/block_padding_2.xml +++ b/test/layoutengine/testcases/block_padding_2.xml @@ -44,39 +44,61 @@ </fo>
<checks>
<element-list category="breaker">
- <box w="30000"/>
+ <box w="0"/>
+ <penalty w="0" p="INF"/>
+ <glue w="30000" aux="true"/>
+
<box w="14400"/>
- <penalty w="30000" p="0"/> <!-- w="30000" is for the padding-after -->
- <glue w="-30000" aux="true"/> <!-- get's discarded if a break happens on the penalty above -->
+
+ <glue w="30000" aux="true"/> <!-- w="30000" is for the padding-after -->
+ <penalty w="0" p="0"/>
+ <glue w="-60000" aux="true"/> <!-- difference between break and no-break situation -->
<box w="0"/>
<penalty w="0" p="INF"/>
<glue w="30000" aux="true"/> <!-- w="30000" is for the padding-before -->
+
<box w="14400"/>
- <penalty w="30000" p="0"/>
- <glue w="-30000" aux="true"/>
+
+ <glue w="30000" aux="true"/>
+ <penalty w="0" p="0"/>
+ <glue w="-60000" aux="true"/>
<box w="0"/>
<penalty w="0" p="INF"/>
<glue w="30000" aux="true"/>
+
<box w="14400"/>
- <penalty w="30000" p="0"/>
- <glue w="-30000" aux="true"/>
+
+ <glue w="30000" aux="true"/>
+ <penalty w="0" p="0"/>
+ <glue w="-60000" aux="true"/>
<box w="0"/>
<penalty w="0" p="INF"/>
<glue w="30000" aux="true"/>
+
<box w="14400"/>
- <penalty w="30000" p="0"/>
- <glue w="-30000" aux="true"/>
+
+ <glue w="30000" aux="true"/>
+ <penalty w="0" p="0"/>
+ <glue w="-60000" aux="true"/>
<box w="0"/>
<penalty w="0" p="INF"/>
<glue w="30000" aux="true"/>
+
<box w="14400"/>
- <penalty w="30000" p="0"/>
- <glue w="-30000" aux="true"/>
+
+ <glue w="30000" aux="true"/>
+ <penalty w="0" p="0"/>
+ <glue w="-60000" aux="true"/>
<box w="0"/>
<penalty w="0" p="INF"/>
<glue w="30000" aux="true"/>
+
<box w="14400"/>
- <box w="30000"/>
+
+ <box w="0"/>
+ <penalty w="0" p="INF"/>
+ <glue w="30000" aux="true"/>
+
<skip>3</skip>
</element-list>
</checks>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_1.xml b/test/layoutengine/testcases/block_space-before_space-after_1.xml index 746cf15c9..9c462b29c 100644 --- a/test/layoutengine/testcases/block_space-before_space-after_1.xml +++ b/test/layoutengine/testcases/block_space-before_space-after_1.xml @@ -42,30 +42,34 @@ </fo> <checks> <!-- overlapping block1 --> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/> + <eval expected="360000" xpath="//flow/block[1]/@ipda"/> + <eval expected="14400" xpath="//flow/block[1]/@bpd"/> + <eval expected="6400" xpath="//flow/block[1]/@bpda"/> <!-- space after overlapping block1 --> - <eval expected="-8000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/> + <eval expected="-8000" xpath="//flow/block[1]/@space-after"/> <!-- normal block1 --> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/> + <eval expected="360000" xpath="//flow/block[2]/@ipda"/> + <eval expected="14400" xpath="//flow/block[2]/@bpda"/> <!-- space before spaced block1 --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/> + <eval expected="5000" xpath="//flow/block[3]/@space-before"/> <!-- spaced block1 --> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpda"/> + <eval expected="360000" xpath="//flow/block[3]/@ipda"/> + <eval expected="14400" xpath="//flow/block[3]/@bpd"/> + <eval expected="19400" xpath="//flow/block[3]/@bpda"/> <!-- spaced block2 --> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpda"/> + <eval expected="360000" xpath="//flow/block[4]/@ipda"/> + <eval expected="14400" xpath="//flow/block[4]/@bpd"/> + <eval expected="19400" xpath="//flow/block[4]/@bpda"/> <!-- space after spaced block2 --> - <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpd"/> + <eval expected="5000" xpath="//flow/block[4]/@space-after"/> <!-- normal block2 --> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bpda"/> + <eval expected="360000" xpath="//flow/block[5]/@ipda"/> + <eval expected="14400" xpath="//flow/block[5]/@bpda"/> <!-- space before overlapping block2 --> - <eval expected="-8000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@bpd"/> + <eval expected="-8000" xpath="//flow/block[6]/@space-before"/> <!-- overlapping block2 --> - <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[10]/@ipda"/> - <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[10]/@bpda"/> + <eval expected="360000" xpath="//flow/block[6]/@ipda"/> + <eval expected="14400" xpath="//flow/block[6]/@bpd"/> + <eval expected="6400" xpath="//flow/block[6]/@bpda"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/block_space-before_space-after_2.xml b/test/layoutengine/testcases/block_space-before_space-after_2.xml index 58b5a3e6f..0676277f9 100644 --- a/test/layoutengine/testcases/block_space-before_space-after_2.xml +++ b/test/layoutengine/testcases/block_space-before_space-after_2.xml @@ -28,7 +28,7 @@ <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> - <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:page-sequence master-reference="normal" id="retain"> <fo:flow flow-name="xsl-region-body"> <fo:block space-before.optimum="20pt" space-before.conditionality="retain" space-after.optimum="10pt" space-after.conditionality="retain" text-align="justify"> In olden times when wishing still helped one, there lived a king whose daughters @@ -44,7 +44,7 @@ Two blocks, testing conditionality="retain". </fo:block> </fo:flow> </fo:page-sequence> - <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:page-sequence master-reference="normal" id="discard"> <fo:flow flow-name="xsl-region-body"> <fo:block space-before.optimum="20pt" space-before.conditionality="discard" space-after.optimum="10pt" space-after.conditionality="discard" text-align="justify"> In olden times when wishing still helped one, there lived a king whose daughters @@ -63,5 +63,94 @@ Two blocks, testing conditionality="discard". </fo:root> </fo> <checks> + <element-list category="breaker" id="retain"> + <box w="0"/> <!-- Helper box bearing the SpaceHandlingPosition and making sure the glue gets processed --> + <penalty w="0" p="INF"/> + <glue w="20000" y="0" z="20000"/> + + <box w="14400"/> + <box w="14400"/> + + <penalty w="0" p="INF"/> + <glue w="10000" y="0" z="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000" y="0" z="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000" y="0" z="20000"/> + + <box w="14400"/> + + <penalty w="0" p="INF"/> + <glue w="10000" y="0" z="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000" y="0" z="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000" y="0" z="20000"/> + + <box w="14400"/> + + <!-- skip three more lines --> + <skip>8</skip> + <skip>8</skip> + <skip>8</skip> + + <penalty w="0" p="INF"/> + <glue w="10000" y="0" z="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000" y="0" z="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000" y="0" z="20000"/> + + <box w="14400"/> + <box w="14400"/> + + <penalty w="0" p="INF" aux="true"/> + <glue w="10000" aux="true"/> + <penalty w="0" p="0"/> + <glue w="-10000" aux="true"/> + + <box w="0" aux="true"/> + <penalty w="0" p="INF" aux="true"/> + <glue w="10000" aux="true"/> + + <box w="14400"/> <!-- second block --> + + <box w="0" aux="true"/> + <penalty w="0" p="INF" aux="true"/> + <glue w="20000" aux="true"/> + + <box w="0" aux="true"/> <!-- This is used to make sure the preceding glue is not cut off --> + + <skip>3</skip> + </element-list> + <element-list category="breaker" id="discard"> + <box w="0"/> <!-- Helper box used to notify the LM for the addAreas stage about the discarded spaces --> + <box w="14400"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <glue w="10000"/> + + <box w="14400"/> <!-- second block --> + + <box w="0"/> <!-- SpaceHandlingPosition-bearing helper box --> + + <skip>3</skip> + </element-list> </checks> </testcase> diff --git a/test/layoutengine/testcases/block_space-before_space-after_3.xml b/test/layoutengine/testcases/block_space-before_space-after_3.xml index a58c831a3..0c59ec68f 100644 --- a/test/layoutengine/testcases/block_space-before_space-after_3.xml +++ b/test/layoutengine/testcases/block_space-before_space-after_3.xml @@ -46,7 +46,7 @@ <element-list category="breaker">
<box w="0"/>
<penalty w="0" p="INF"/>
- <glue w="5000" aux="true"/>
+ <glue w="5000"/>
<box w="14400"/>
<box w="14400"/>
<skip>3</skip>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_4.xml b/test/layoutengine/testcases/block_space-before_space-after_4.xml new file mode 100644 index 000000000..3d4fb9f58 --- /dev/null +++ b/test/layoutengine/testcases/block_space-before_space-after_4.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks block-level space properties. Demonstrates that spaces are repeated on every generated area. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="30pt"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:flow flow-name="xsl-region-body" line-height="10pt" font-size="9pt"> + <fo:block space-before="5pt" space-before.conditionality="retain" background-color="yellow"> + <fo:block>line 1</fo:block> + <fo:block>line 2</fo:block> + <fo:block>line 3</fo:block> + <fo:block>line 4</fo:block> + <fo:block>line 5</fo:block> + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker"> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + <penalty w="0" p="0"/> + <glue w="-5000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + <penalty w="0" p="0"/> + <glue w="-5000"/> + + <!-- skip two more lines --> + <skip>6</skip> + <skip>6</skip> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + + <skip>3</skip> + </element-list> + <eval expected="3" xpath="count(//pageViewport)"/> + <eval expected="5000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="5000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="5000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="1" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block)"/> + <eval expected="1" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block)"/> + <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block)"/> + <eval expected="2" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block)"/> + <eval expected="2" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block)"/> + <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block)"/> + + </checks> +</testcase> diff --git a/test/layoutengine/testcases/block_space-before_space-after_5.xml b/test/layoutengine/testcases/block_space-before_space-after_5.xml new file mode 100644 index 000000000..5a7beac8e --- /dev/null +++ b/test/layoutengine/testcases/block_space-before_space-after_5.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks block-level space properties. These here are the + <a href="http://wiki.apache.org/xmlgraphics-fop/SpaceResolution/Examples">examples 3 to 5 on the Wiki</a>. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in"> + <fo:region-body background-color="lightgray"/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" id="cond-cond"> + <fo:flow flow-name="xsl-region-body"> + <fo:block space-after="11pt">block 1: space-after conditional</fo:block> + <fo:block space-before="12pt">block 2: space-before conditional</fo:block> + </fo:flow> + </fo:page-sequence> + <fo:page-sequence master-reference="normal" id="retain-cond"> + <fo:flow flow-name="xsl-region-body"> + <fo:block space-after="11pt" space-after.conditionality="retain">block 1: space-after retained</fo:block> + <fo:block space-before="12pt">block 2: space-before: conditional</fo:block> + </fo:flow> + </fo:page-sequence> + <fo:page-sequence master-reference="normal" id="retain-cond-2"> + <fo:flow flow-name="xsl-region-body"> + <fo:block space-after="10pt" space-after.conditionality="retain">block 1: space-after retained</fo:block> + <fo:block space-before="10pt">block 2: space-before: conditional</fo:block> + </fo:flow> + </fo:page-sequence> + <fo:page-sequence master-reference="normal" id="retain-retain"> + <fo:flow flow-name="xsl-region-body"> + <fo:block space-after="11pt" space-after.conditionality="retain">block 1: space-after retained</fo:block> + <fo:block space-before="12pt" space-before.conditionality="retain">block 2: space-before retained</fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker" id="cond-cond"> + <box w="14400"/> + <penalty w="0" p="0"/> + <glue w="12000"/> + <box w="14400"/> + <skip>3</skip> + </element-list> + <element-list category="breaker" id="retain-cond"> + <box w="14400"/> + <penalty w="0" p="INF"/> + <glue w="11000"/> + <penalty w="0" p="0"/> + <glue w="1000"/> + <box w="14400"/> + <skip>3</skip> + </element-list> + <element-list category="breaker" id="retain-cond-2"> + <box w="14400"/> + <penalty w="0" p="INF"/> + <glue w="10000"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <skip>3</skip> + </element-list> + <element-list category="breaker" id="retain-retain"> + <box w="14400"/> + <penalty w="0" p="INF"/> + <glue w="11000"/> + <penalty w="0" p="0"/> + <glue w="-11000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="12000"/> + <box w="14400"/> + <skip>3</skip> + </element-list> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/block_space-before_space-after_6.xml b/test/layoutengine/testcases/block_space-before_space-after_6.xml new file mode 100644 index 000000000..7b6737252 --- /dev/null +++ b/test/layoutengine/testcases/block_space-before_space-after_6.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks block-level space properties. These here are the + <a href="http://wiki.apache.org/xmlgraphics-fop/SpaceResolution/Examples">examples 1 and 2 on the Wiki</a>. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in"> + <fo:region-body background-color="lightgray"/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" id="ex1"> + <fo:flow flow-name="xsl-region-body"> + <fo:block>first line</fo:block> + <fo:block space-before="10pt"> + <fo:block>before break</fo:block> + <fo:block>after break</fo:block> + </fo:block> + </fo:flow> + </fo:page-sequence> + <fo:page-sequence master-reference="normal" id="ex2"> + <fo:flow flow-name="xsl-region-body"> + <fo:block>first line</fo:block> + <fo:block space-before="10pt" space-before.conditionality="retain"> + <fo:block>before break</fo:block> + <fo:block>after break</fo:block> + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker" id="ex1"> + <box w="14400"/> + + <penalty w="0" p="0"/> + + <glue w="10000"/> + <box w="14400"/> + + <penalty w="0" p="0"/> + + <box w="14400"/> + + <skip>3</skip> + </element-list> + + <element-list category="breaker" id="ex2"> + <box w="14400"/> + + <penalty w="0" p="0"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="10000"/> + + <box w="14400"/> + + <penalty w="0" p="0"/> + + <glue w="-10000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="10000"/> + + <box w="14400"/> + + <skip>3</skip> + </element-list> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/block_space-before_space-after_7.xml b/test/layoutengine/testcases/block_space-before_space-after_7.xml new file mode 100644 index 000000000..4387626f2 --- /dev/null +++ b/test/layoutengine/testcases/block_space-before_space-after_7.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks block-level space properties. These here are the + <a href="http://wiki.apache.org/xmlgraphics-fop/SpaceResolution/Examples">examples 1 and 2 on the Wiki</a>. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in"> + <fo:region-body background-color="lightgray"/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" id="ex8"> + <fo:flow flow-name="xsl-region-body"> + <fo:block space-before="10pt" padding-before="5pt" border-before-style="solid" border-before-width="2pt"> + first line + <fo:block space-before="6pt">second line</fo:block> + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker" id="ex8"> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="7000"/> + <box w="14400"/> + + <penalty w="0" p="0"/> + + <glue w="6000"/> + <box w="14400"/> + <skip>3</skip> + </element-list> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/block_space-before_space-after_8.xml b/test/layoutengine/testcases/block_space-before_space-after_8.xml new file mode 100644 index 000000000..6a960077f --- /dev/null +++ b/test/layoutengine/testcases/block_space-before_space-after_8.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks if the special case is properly handled when an empty block is between two + space-specifiers which should form a stacking constraint. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" id="ex8"> + <fo:flow flow-name="xsl-region-body"> + <fo:block space-after="10pt"> + first line + </fo:block> + <fo:block id="empty-block"/> + <fo:block space-before="10pt"> + second line + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <true xpath="not(boolean(//flow/block[1]/@space-after))"/> + <eval expected="10000" xpath="//flow/block[2]/@space-before"/> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/block_space-before_space-after_9.xml b/test/layoutengine/testcases/block_space-before_space-after_9.xml new file mode 100644 index 000000000..4df459117 --- /dev/null +++ b/test/layoutengine/testcases/block_space-before_space-after_9.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks if the isLast case is properly handled. In this case the part list has to be + reversed to do the conditionals removal, but then has to be reversed again to its natural order + so space resolution rules 2 and 3 are properly performed. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal"> + <fo:flow flow-name="xsl-region-body"> + <fo:block space-before="11pt" space-after="11pt"> + <fo:block space-before="12pt" space-after="12pt"> + <fo:block space-before="13pt" space-after="13pt" border="solid 1pt"> + Apache FOP! + </fo:block> + </fo:block> + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker"> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="1000"/> + + <box w="14400"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="1000"/> + + <box w="0"/> + <skip>3</skip> + </element-list> + <true xpath="not(boolean(//flow/block[1]/@space-before))"/> + <true xpath="not(boolean(//flow/block[1]/@space-after))"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/@space-before))"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/@space-after))"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/@space-before))"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/@space-after))"/> + <eval expected="1000 1000 1000 1000" xpath="//flow/block[1]/block[1]/block[1]/@bap"/> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/block_space-before_space-after_9a.xml b/test/layoutengine/testcases/block_space-before_space-after_9a.xml new file mode 100644 index 000000000..07f378368 --- /dev/null +++ b/test/layoutengine/testcases/block_space-before_space-after_9a.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks if the isLast case is properly handled. In this case the part list has to be + reversed to do the conditionals removal, but then has to be reversed again to its natural order + so space resolution rules 2 and 3 are properly performed. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal"> + <fo:flow flow-name="xsl-region-body"> + <fo:block space-before="11pt" space-after="11pt"> + <fo:block space-before="12pt" space-after="12pt"> + <fo:block space-before="13pt" space-after="13pt" border="solid 1pt"> + Apache FOP! + <fo:block break-before="page"/> + Apache FOP!!! + </fo:block> + </fo:block> + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker" index="0"> + <box w="0"/> <!-- SpaceHandlingPosition --> + <penalty w="0" p="INF"/> + <glue w="1000"/> + + <box w="14400"/> + + <skip>3</skip> <!-- the last of the three holds a SpaceHandlingBreakPosition --> + </element-list> + <element-list category="breaker" index="1"> + <box w="0"/> <!-- SpaceHandlingPosition --> + + <box w="0"/> <!-- empty block used to cause the break-before --> + <penalty w="0" p="0"/> + + <box w="14400"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="1000"/> + <box w="0"/> <!-- SpaceHandlingPosition --> + + <skip>3</skip> + </element-list> + + <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/> + <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@space-after))"/> + <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@space-after))"/> + <eval expected="1000 1000 1000 0" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@bap"/> + + <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/> + <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@space-after))"/> + <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@space-after))"/> + <eval expected="1000 1000 0 1000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@bap"/> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/character_border_padding.xml b/test/layoutengine/testcases/character_border_padding.xml index a5c6f6f7a..02c72b118 100755 --- a/test/layoutengine/testcases/character_border_padding.xml +++ b/test/layoutengine/testcases/character_border_padding.xml @@ -47,52 +47,52 @@ </fo:root> </fo> <checks> + <eval expected="7180" xpath="//flow/block[1]/lineArea/char/@baseline"/> + <eval expected="0" xpath="//flow/block[1]/lineArea/char/@offset"/> + <eval expected="5560" xpath="//flow/block[1]/lineArea/char/@ipd"/> + <eval expected="7560" xpath="//flow/block[1]/lineArea/char/@ipda"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/char/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/char/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/char/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/char/@border-start"/> + <eval expected="7180" xpath="//flow/block[2]/lineArea/char/@baseline"/> <eval expected="0" xpath="//flow/block[2]/lineArea/char/@offset"/> <eval expected="5560" xpath="//flow/block[2]/lineArea/char/@ipd"/> - <eval expected="7560" xpath="//flow/block[2]/lineArea/char/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/char/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/char/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/char/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/char/@border-start"/> - - <eval expected="7180" xpath="//flow/block[5]/lineArea/char/@baseline"/> - <eval expected="0" xpath="//flow/block[5]/lineArea/char/@offset"/> - <eval expected="5560" xpath="//flow/block[5]/lineArea/char/@ipd"/> - <eval expected="25560" xpath="//flow/block[5]/lineArea/char/@ipda"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/char/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/char/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/char/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/char/@border-start"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/char/@padding-after"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/char/@padding-before"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/char/@padding-end"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/char/@padding-start"/> + <eval expected="25560" xpath="//flow/block[2]/lineArea/char/@ipda"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/char/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/char/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/char/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/char/@border-start"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/char/@padding-after"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/char/@padding-before"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/char/@padding-end"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/char/@padding-start"/> - <eval expected="7180" xpath="//flow/block[8]/lineArea/char/@baseline"/> - <eval expected="0" xpath="//flow/block[8]/lineArea/char/@offset"/> - <eval expected="5000" xpath="//flow/block[8]/lineArea/char/@ipd"/> - <eval expected="17000" xpath="//flow/block[8]/lineArea/char/@ipda"/> - <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[8]/lineArea/char/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea/char/@border-before"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[8]/lineArea/char/@border-end"/> - <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[8]/lineArea/char/@border-start"/> - <eval expected="3000" xpath="//flow/block[8]/lineArea/char/@padding-after"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea/char/@padding-before"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea/char/@padding-end"/> - <eval expected="4000" xpath="//flow/block[8]/lineArea/char/@padding-start"/> + <eval expected="7180" xpath="//flow/block[3]/lineArea/char/@baseline"/> + <eval expected="0" xpath="//flow/block[3]/lineArea/char/@offset"/> + <eval expected="5000" xpath="//flow/block[3]/lineArea/char/@ipd"/> + <eval expected="17000" xpath="//flow/block[3]/lineArea/char/@ipda"/> + <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[3]/lineArea/char/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/char/@border-before"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[3]/lineArea/char/@border-end"/> + <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[3]/lineArea/char/@border-start"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea/char/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea/char/@padding-before"/> + <eval expected="2000" xpath="//flow/block[3]/lineArea/char/@padding-end"/> + <eval expected="4000" xpath="//flow/block[3]/lineArea/char/@padding-start"/> - <eval expected="5744" xpath="//flow/block[11]/lineArea/char/@baseline"/> - <eval expected="8616" xpath="//flow/block[11]/lineArea/char/@offset"/> - <eval expected="4448" xpath="//flow/block[11]/lineArea/char/@ipd"/> - <eval expected="24448" xpath="//flow/block[11]/lineArea/char/@ipda"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/char/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/char/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/char/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/char/@border-start"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/char/@padding-after"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/char/@padding-before"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/char/@padding-end"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/char/@padding-start"/> + <eval expected="5744" xpath="//flow/block[4]/lineArea/char/@baseline"/> + <eval expected="8616" xpath="//flow/block[4]/lineArea/char/@offset"/> + <eval expected="4448" xpath="//flow/block[4]/lineArea/char/@ipd"/> + <eval expected="24448" xpath="//flow/block[4]/lineArea/char/@ipda"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/char/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/char/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/char/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/char/@border-start"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/char/@padding-after"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/char/@padding-before"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/char/@padding-end"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/char/@padding-start"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/character_vertical-align.xml b/test/layoutengine/testcases/character_vertical-align.xml index 60f15505e..125d56fb0 100755 --- a/test/layoutengine/testcases/character_vertical-align.xml +++ b/test/layoutengine/testcases/character_vertical-align.xml @@ -50,10 +50,10 @@ </fo:root> </fo> <checks> + <eval expected="7180" xpath="//flow/block[1]/lineArea/char/@offset"/> <eval expected="7180" xpath="//flow/block[2]/lineArea/char/@offset"/> - <eval expected="7180" xpath="//flow/block[5]/lineArea/char/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea/char/@offset"/> - <eval expected="4565" xpath="//flow/block[11]/lineArea/char/@offset"/> - <eval expected="9250" xpath="//flow/block[14]/lineArea/char/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea/char/@offset"/> + <eval expected="4565" xpath="//flow/block[4]/lineArea/char/@offset"/> + <eval expected="9250" xpath="//flow/block[5]/lineArea/char/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/footnote_space-resolution.xml b/test/layoutengine/testcases/footnote_space-resolution.xml new file mode 100644 index 000000000..151e276b9 --- /dev/null +++ b/test/layoutengine/testcases/footnote_space-resolution.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks space-resolution inside the footnotes area. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="3in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:flow flow-name="xsl-region-body"> + <fo:block>region-body<fo:footnote> + <fo:inline font-size="50%" vertical-align="super">1</fo:inline> + <fo:footnote-body> + <fo:block space-before="1em" space-after="1em"> + <fo:inline font-size="50%" vertical-align="super">1</fo:inline>I'm a footnote!</fo:block> + </fo:footnote-body> + </fo:footnote> + blah<fo:footnote> + <fo:inline font-size="50%" vertical-align="super">2</fo:inline> + <fo:footnote-body> + <fo:block space-before="1em" space-after="1em"> + <fo:inline font-size="50%" vertical-align="super">2</fo:inline>I'm a footnote!</fo:block> + </fo:footnote-body> + </fo:footnote> + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <true xpath="not(boolean(//footnotes/block[1]/@space-before))"/> + <true xpath="not(boolean(//footnotes/block[1]/@space-after))"/> + <eval expected="12000" xpath="//footnotes/block[2]/@space-before"/> + <true xpath="not(boolean(//footnotes/block[2]/@space-after))"/> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/inline_alignment-adjust_1.xml b/test/layoutengine/testcases/inline_alignment-adjust_1.xml index ac6a6233f..1ad390a53 100755 --- a/test/layoutengine/testcases/inline_alignment-adjust_1.xml +++ b/test/layoutengine/testcases/inline_alignment-adjust_1.xml @@ -86,22 +86,22 @@ </fo:root> </fo> <checks> + <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> - <eval expected="2872" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> - <eval expected="2872" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="10052" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> + <eval expected="2872" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="10052" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="10052" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> + <eval expected="5427" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="5487" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="802" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> + <eval expected="802" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/> + <eval expected="802" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/> + <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> + <eval expected="8616" xpath="//flow/block[12]/lineArea[1]/inlineparent/@offset"/> + <eval expected="6462" xpath="//flow/block[13]/lineArea[1]/inlineparent/@offset"/> <eval expected="10052" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="5427" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="5487" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="802" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="802" xpath="//flow/block[26]/lineArea[1]/inlineparent/@offset"/> - <eval expected="802" xpath="//flow/block[29]/lineArea[1]/inlineparent/@offset"/> - <eval expected="2872" xpath="//flow/block[32]/lineArea[1]/inlineparent/@offset"/> - <eval expected="8616" xpath="//flow/block[35]/lineArea[1]/inlineparent/@offset"/> - <eval expected="6462" xpath="//flow/block[38]/lineArea[1]/inlineparent/@offset"/> - <eval expected="10052" xpath="//flow/block[41]/lineArea[1]/inlineparent/@offset"/> - <eval expected="802" xpath="//flow/block[44]/lineArea[1]/inlineparent/@offset"/> - <eval expected="10052" xpath="//flow/block[47]/lineArea[1]/inlineparent/@offset"/> - <eval expected="802" xpath="//flow/block[50]/lineArea[1]/inlineparent/@offset"/> + <eval expected="802" xpath="//flow/block[15]/lineArea[1]/inlineparent/@offset"/> + <eval expected="10052" xpath="//flow/block[16]/lineArea[1]/inlineparent/@offset"/> + <eval expected="802" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_alignment-adjust_2.xml b/test/layoutengine/testcases/inline_alignment-adjust_2.xml index fd21545b2..d8d766e50 100755 --- a/test/layoutengine/testcases/inline_alignment-adjust_2.xml +++ b/test/layoutengine/testcases/inline_alignment-adjust_2.xml @@ -53,6 +53,13 @@ </fo:root> </fo> <checks> + <eval expected="12950" xpath="//flow/block[1]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/> + <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/> + <eval expected="12950" xpath="//flow/block[2]/lineArea[1]/@bpd"/> <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-before"/> <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-after"/> @@ -60,39 +67,32 @@ <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/> - <eval expected="12950" xpath="//flow/block[5]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> - <eval expected="2872" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - - <eval expected="13078" xpath="//flow/block[8]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[8]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[8]/lineArea[1]/@space-after"/> - <eval expected="128" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="128" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> + <eval expected="13078" xpath="//flow/block[3]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-after"/> + <eval expected="128" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="128" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/> - <eval expected="15122" xpath="//flow/block[11]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[11]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[11]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> - <eval expected="5872" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/> + <eval expected="15122" xpath="//flow/block[4]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/> + <eval expected="5872" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/> - <eval expected="13678" xpath="//flow/block[14]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[14]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[14]/lineArea[1]/@space-after"/> - <eval expected="728" xpath="//flow/block[14]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="728" xpath="//flow/block[14]/lineArea[1]/text[2]/@offset"/> + <eval expected="13678" xpath="//flow/block[5]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-after"/> + <eval expected="728" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> + <eval expected="728" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - <eval expected="15722" xpath="//flow/block[17]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[17]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[17]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/text[1]/@offset"/> - <eval expected="6472" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/text[2]/@offset"/> + <eval expected="15722" xpath="//flow/block[6]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/> + <eval expected="6472" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_alignment-baseline_1.xml b/test/layoutengine/testcases/inline_alignment-baseline_1.xml index 128fd6b00..9b514c7f4 100755 --- a/test/layoutengine/testcases/inline_alignment-baseline_1.xml +++ b/test/layoutengine/testcases/inline_alignment-baseline_1.xml @@ -86,22 +86,22 @@ </fo:root> </fo> <checks> + <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> - <eval expected="2872" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> - <eval expected="2872" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> + <eval expected="2872" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> + <eval expected="1850" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="1826" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="3700" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> + <eval expected="3700" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/> + <eval expected="3700" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/> + <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> + <eval expected="574" xpath="//flow/block[12]/lineArea[1]/inlineparent/@offset"/> + <eval expected="1436" xpath="//flow/block[13]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="1850" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="1826" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="3700" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="3700" xpath="//flow/block[26]/lineArea[1]/inlineparent/@offset"/> - <eval expected="3700" xpath="//flow/block[29]/lineArea[1]/inlineparent/@offset"/> - <eval expected="2872" xpath="//flow/block[32]/lineArea[1]/inlineparent/@offset"/> - <eval expected="574" xpath="//flow/block[35]/lineArea[1]/inlineparent/@offset"/> - <eval expected="1436" xpath="//flow/block[38]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[41]/lineArea[1]/inlineparent/@offset"/> - <eval expected="3700" xpath="//flow/block[44]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[47]/lineArea[1]/inlineparent/@offset"/> - <eval expected="3700" xpath="//flow/block[50]/lineArea[1]/inlineparent/@offset"/> + <eval expected="3700" xpath="//flow/block[15]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[16]/lineArea[1]/inlineparent/@offset"/> + <eval expected="3700" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_alignment-baseline_2.xml b/test/layoutengine/testcases/inline_alignment-baseline_2.xml index f5559f435..591ee2c9b 100755 --- a/test/layoutengine/testcases/inline_alignment-baseline_2.xml +++ b/test/layoutengine/testcases/inline_alignment-baseline_2.xml @@ -86,55 +86,55 @@ </fo:root> </fo> <checks> + <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/> + <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/> + <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/> <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/> - <eval expected="2872" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> - <eval expected="2872" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - - <eval expected="2872" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> - <eval expected="2872" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> + <eval expected="2872" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/> + <eval expected="2872" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - <eval expected="1850" xpath="//flow/block[17]/lineArea[1]/text[1]/@offset"/> - <eval expected="1850" xpath="//flow/block[17]/lineArea[1]/text[2]/@offset"/> + <eval expected="1850" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/> + <eval expected="1850" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/> - <eval expected="1826" xpath="//flow/block[20]/lineArea[1]/text[1]/@offset"/> - <eval expected="1826" xpath="//flow/block[20]/lineArea[1]/text[2]/@offset"/> + <eval expected="1826" xpath="//flow/block[7]/lineArea[1]/text[1]/@offset"/> + <eval expected="1826" xpath="//flow/block[7]/lineArea[1]/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> - <eval expected="3700" xpath="//flow/block[26]/lineArea[1]/text[1]/@offset"/> - <eval expected="3700" xpath="//flow/block[26]/lineArea[1]/text[2]/@offset"/> + <eval expected="3700" xpath="//flow/block[9]/lineArea[1]/text[1]/@offset"/> + <eval expected="3700" xpath="//flow/block[9]/lineArea[1]/text[2]/@offset"/> - <eval expected="3700" xpath="//flow/block[29]/lineArea[1]/text[1]/@offset"/> - <eval expected="3700" xpath="//flow/block[29]/lineArea[1]/text[2]/@offset"/> + <eval expected="3700" xpath="//flow/block[10]/lineArea[1]/text[1]/@offset"/> + <eval expected="3700" xpath="//flow/block[10]/lineArea[1]/text[2]/@offset"/> - <eval expected="2872" xpath="//flow/block[32]/lineArea[1]/text[1]/@offset"/> - <eval expected="2872" xpath="//flow/block[32]/lineArea[1]/text[2]/@offset"/> + <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> + <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/> - <eval expected="574" xpath="//flow/block[35]/lineArea[1]/text[1]/@offset"/> - <eval expected="574" xpath="//flow/block[35]/lineArea[1]/text[2]/@offset"/> + <eval expected="574" xpath="//flow/block[12]/lineArea[1]/text[1]/@offset"/> + <eval expected="574" xpath="//flow/block[12]/lineArea[1]/text[2]/@offset"/> - <eval expected="1436" xpath="//flow/block[38]/lineArea[1]/text[1]/@offset"/> - <eval expected="1436" xpath="//flow/block[38]/lineArea[1]/text[2]/@offset"/> + <eval expected="1436" xpath="//flow/block[13]/lineArea[1]/text[1]/@offset"/> + <eval expected="1436" xpath="//flow/block[13]/lineArea[1]/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[41]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[41]/lineArea[1]/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[44]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[44]/lineArea[1]/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[15]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[15]/lineArea[1]/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[47]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[47]/lineArea[1]/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[16]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[16]/lineArea[1]/text[2]/@offset"/> - <eval expected="3700" xpath="//flow/block[50]/lineArea[1]/text[1]/@offset"/> - <eval expected="3700" xpath="//flow/block[50]/lineArea[1]/text[2]/@offset"/> + <eval expected="3700" xpath="//flow/block[17]/lineArea[1]/text[1]/@offset"/> + <eval expected="3700" xpath="//flow/block[17]/lineArea[1]/text[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_alignment-baseline_3.xml b/test/layoutengine/testcases/inline_alignment-baseline_3.xml index 77cc07167..3d32b3595 100755 --- a/test/layoutengine/testcases/inline_alignment-baseline_3.xml +++ b/test/layoutengine/testcases/inline_alignment-baseline_3.xml @@ -86,22 +86,22 @@ </fo:root> </fo> <checks> + <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent[2]/@offset"/> <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="2872" xpath="//flow/block[5]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="2872" xpath="//flow/block[8]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="1436" xpath="//flow/block[14]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="2361" xpath="//flow/block[17]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="2349" xpath="//flow/block[20]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="3700" xpath="//flow/block[23]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="3286" xpath="//flow/block[26]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="3286" xpath="//flow/block[29]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="2872" xpath="//flow/block[32]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="1723" xpath="//flow/block[35]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="2154" xpath="//flow/block[38]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="0" xpath="//flow/block[41]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="3700" xpath="//flow/block[44]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="1436" xpath="//flow/block[47]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="3286" xpath="//flow/block[50]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="2872" xpath="//flow/block[3]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="1436" xpath="//flow/block[5]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="2361" xpath="//flow/block[6]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="2349" xpath="//flow/block[7]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="3700" xpath="//flow/block[8]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="3286" xpath="//flow/block[9]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="3286" xpath="//flow/block[10]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="1723" xpath="//flow/block[12]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="2154" xpath="//flow/block[13]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="3700" xpath="//flow/block[15]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="1436" xpath="//flow/block[16]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="3286" xpath="//flow/block[17]/lineArea[1]/inlineparent[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_alignment-baseline_4.xml b/test/layoutengine/testcases/inline_alignment-baseline_4.xml index 794c81e5a..4268c1239 100755 --- a/test/layoutengine/testcases/inline_alignment-baseline_4.xml +++ b/test/layoutengine/testcases/inline_alignment-baseline_4.xml @@ -132,6 +132,15 @@ </fo:root> </fo> <checks> + <eval expected="22200" xpath="//flow/block[1]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/> + <eval expected="8616" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-4308" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/> + <eval expected="22200" xpath="//flow/block[2]/lineArea[1]/@bpd"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/> <eval expected="8616" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> @@ -141,91 +150,82 @@ <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[2]/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/> + <eval expected="22200" xpath="//flow/block[3]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/> + <eval expected="1723" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="6494" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/> + + <eval expected="22200" xpath="//flow/block[4]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/> + <eval expected="1723" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="2739" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/> + <eval expected="22200" xpath="//flow/block[5]/lineArea[1]/@bpd"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> - <eval expected="8616" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-4308" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="5550" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[2]/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - <eval expected="22200" xpath="//flow/block[8]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> - <eval expected="1723" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="6494" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> - - <eval expected="22200" xpath="//flow/block[11]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> - <eval expected="1723" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="2739" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/> - - <eval expected="22200" xpath="//flow/block[14]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="5550" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[2]/@offset"/> + <eval expected="27750" xpath="//flow/block[6]/lineArea[1]/@bpd"/> + <eval expected="5550" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/> + <eval expected="5550" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-5550" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="5550" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/> - <eval expected="27750" xpath="//flow/block[17]/lineArea[1]/@bpd"/> - <eval expected="5550" xpath="//flow/block[17]/lineArea[1]/text[1]/@offset"/> - <eval expected="5550" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-5550" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="5550" xpath="//flow/block[17]/lineArea[1]/text[2]/@offset"/> + <eval expected="22200" xpath="//flow/block[7]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[1]/@offset"/> + <eval expected="8325" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-8325" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> + <eval expected="4308" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[2]/@offset"/> - <eval expected="22200" xpath="//flow/block[20]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/text[1]/@offset"/> - <eval expected="8325" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-8325" xpath="//flow/block[20]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> - <eval expected="4308" xpath="//flow/block[20]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/text[2]/@offset"/> - - <eval expected="22491" xpath="//flow/block[23]/lineArea[1]/@bpd"/> - <eval expected="291" xpath="//flow/block[23]/lineArea[1]/text[1]/@offset"/> - <eval expected="8616" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> - <eval expected="-8616" xpath="//flow/block[23]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/inlineparent/text[2]/@offset"/> - <eval expected="291" xpath="//flow/block[23]/lineArea[1]/text[2]/@offset"/> + <eval expected="22491" xpath="//flow/block[8]/lineArea[1]/@bpd"/> + <eval expected="291" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> + <eval expected="8616" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> + <eval expected="-8616" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/text[2]/@offset"/> + <eval expected="291" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> - <eval expected="22200" xpath="//flow/block[26]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/text[1]/@offset"/> - <eval expected="8325" xpath="//flow/block[26]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> - <eval expected="-6462" xpath="//flow/block[26]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/inlineparent/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/text[2]/@offset"/> + <eval expected="22200" xpath="//flow/block[9]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[1]/@offset"/> + <eval expected="8325" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> + <eval expected="-6462" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[2]/@offset"/> - <eval expected="27750" xpath="//flow/block[29]/lineArea[1]/@bpd"/> - <eval expected="5550" xpath="//flow/block[29]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[29]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[29]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-5550" xpath="//flow/block[29]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[29]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[29]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="5550" xpath="//flow/block[29]/lineArea[1]/text[2]/@offset"/> + <eval expected="27750" xpath="//flow/block[10]/lineArea[1]/@bpd"/> + <eval expected="5550" xpath="//flow/block[10]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-5550" xpath="//flow/block[10]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="5550" xpath="//flow/block[10]/lineArea[1]/text[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_background-color.xml b/test/layoutengine/testcases/inline_background-color.xml index 7b5fcdb03..ee56f58ed 100755 --- a/test/layoutengine/testcases/inline_background-color.xml +++ b/test/layoutengine/testcases/inline_background-color.xml @@ -82,51 +82,51 @@ </fo:root> </fo> <checks> + <eval expected="90040" xpath="//flow/block[1]/lineArea/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[1]/lineArea/inlineparent/@background"/> + <eval expected="90040" xpath="//flow/block[2]/lineArea/inlineparent/@ipd"/> <eval expected="color=#ffff00" xpath="//flow/block[2]/lineArea/inlineparent/@background"/> - <eval expected="90040" xpath="//flow/block[5]/lineArea/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[5]/lineArea/inlineparent/@background"/> - - <eval expected="90040" xpath="//flow/block[8]/lineArea/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[8]/lineArea/inlineparent/@background"/> + <eval expected="90040" xpath="//flow/block[3]/lineArea/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[3]/lineArea/inlineparent/@background"/> - <eval expected="90040" xpath="//flow/block[11]/lineArea/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[11]/lineArea/inlineparent/@background"/> + <eval expected="90040" xpath="//flow/block[4]/lineArea/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[4]/lineArea/inlineparent/@background"/> - <eval expected="188950" xpath="//flow/block[14]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[14]/lineArea[1]/inlineparent/@background"/> - <eval expected="313470" xpath="//flow/block[14]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[14]/lineArea[2]/inlineparent/@background"/> - <eval expected="145610" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[14]/lineArea[3]/inlineparent/@background"/> + <eval expected="188950" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[5]/lineArea[1]/inlineparent/@background"/> + <eval expected="313470" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[5]/lineArea[2]/inlineparent/@background"/> + <eval expected="145610" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[5]/lineArea[3]/inlineparent/@background"/> - <eval expected="188950" xpath="//flow/block[17]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[17]/lineArea[1]/inlineparent/@background"/> - <eval expected="313470" xpath="//flow/block[17]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[17]/lineArea[2]/inlineparent/@background"/> - <eval expected="109650" xpath="//flow/block[17]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[17]/lineArea[3]/inlineparent/@background"/> + <eval expected="188950" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[6]/lineArea[1]/inlineparent/@background"/> + <eval expected="313470" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[6]/lineArea[2]/inlineparent/@background"/> + <eval expected="109650" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[6]/lineArea[3]/inlineparent/@background"/> - <eval expected="199793" xpath="//flow/block[20]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[20]/lineArea[1]/inlineparent/@background"/> - <eval expected="350000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[20]/lineArea[2]/inlineparent/@background"/> - <eval expected="118530" xpath="//flow/block[20]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[20]/lineArea[3]/inlineparent/@background"/> + <eval expected="199793" xpath="//flow/block[7]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[7]/lineArea[1]/inlineparent/@background"/> + <eval expected="350000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[7]/lineArea[2]/inlineparent/@background"/> + <eval expected="118530" xpath="//flow/block[7]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[7]/lineArea[3]/inlineparent/@background"/> - <eval expected="128370" xpath="//flow/block[23]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[23]/lineArea[1]/inlineparent/@background"/> - <eval expected="269560" xpath="//flow/block[23]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[23]/lineArea[2]/inlineparent/@background"/> - <eval expected="225250" xpath="//flow/block[23]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[23]/lineArea[3]/inlineparent/@background"/> + <eval expected="128370" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[8]/lineArea[1]/inlineparent/@background"/> + <eval expected="269560" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[8]/lineArea[2]/inlineparent/@background"/> + <eval expected="225250" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[8]/lineArea[3]/inlineparent/@background"/> - <eval expected="151184" xpath="//flow/block[26]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[26]/lineArea[1]/inlineparent/@background"/> - <eval expected="81704" xpath="//flow/block[26]/lineArea[1]/inlineparent/inlineparent/@ipd"/> - <eval expected="161644" xpath="//flow/block[26]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="color=#ffff00" xpath="//flow/block[26]/lineArea[2]/inlineparent/@background"/> - <eval expected="67704" xpath="//flow/block[26]/lineArea[2]/inlineparent/inlineparent/@ipd"/> + <eval expected="151184" xpath="//flow/block[9]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[9]/lineArea[1]/inlineparent/@background"/> + <eval expected="81704" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/@ipd"/> + <eval expected="161644" xpath="//flow/block[9]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="color=#ffff00" xpath="//flow/block[9]/lineArea[2]/inlineparent/@background"/> + <eval expected="67704" xpath="//flow/block[9]/lineArea[2]/inlineparent/inlineparent/@ipd"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_baseline-shift_1.xml b/test/layoutengine/testcases/inline_baseline-shift_1.xml index 723abfc9d..591e33756 100755 --- a/test/layoutengine/testcases/inline_baseline-shift_1.xml +++ b/test/layoutengine/testcases/inline_baseline-shift_1.xml @@ -98,67 +98,67 @@ </fo:root> </fo> <checks> - <eval expected="12950" xpath="//flow/block[2]/lineArea[1]/@bpd"/> + <eval expected="12950" xpath="//flow/block[1]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/> + <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/> + + <eval expected="14737" xpath="//flow/block[2]/lineArea[1]/@bpd"/> <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-before"/> <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-after"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/> - <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> + <eval expected="5487" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/> - <eval expected="14737" xpath="//flow/block[5]/lineArea[1]/@bpd"/> + <eval expected="17400" xpath="//flow/block[3]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-after"/> + <eval expected="4450" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="4450" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/> + + <eval expected="12950" xpath="//flow/block[4]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/> + <eval expected="2872" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/> + + <eval expected="12950" xpath="//flow/block[5]/lineArea[1]/@bpd"/> <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-before"/> <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-after"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> - <eval expected="5487" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> + <eval expected="2872" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - <eval expected="17400" xpath="//flow/block[8]/lineArea[1]/@bpd"/> + <eval expected="13078" xpath="//flow/block[6]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-after"/> + <eval expected="128" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="128" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/> + + <eval expected="15122" xpath="//flow/block[7]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[7]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[7]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[1]/@offset"/> + <eval expected="5872" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[2]/@offset"/> + + <eval expected="15118" xpath="//flow/block[8]/lineArea[1]/@bpd"/> <eval expected="1925" xpath="//flow/block[8]/lineArea[1]/@space-before"/> <eval expected="1925" xpath="//flow/block[8]/lineArea[1]/@space-after"/> - <eval expected="4450" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> + <eval expected="2168" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="4450" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> - - <eval expected="12950" xpath="//flow/block[11]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[11]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[11]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> - <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/> - - <eval expected="12950" xpath="//flow/block[14]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[14]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[14]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[1]/@offset"/> - <eval expected="2872" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[2]/@offset"/> - - <eval expected="13078" xpath="//flow/block[17]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[17]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[17]/lineArea[1]/@space-after"/> - <eval expected="128" xpath="//flow/block[17]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="128" xpath="//flow/block[17]/lineArea[1]/text[2]/@offset"/> - - <eval expected="15122" xpath="//flow/block[20]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[20]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[20]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/text[1]/@offset"/> - <eval expected="5872" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/text[2]/@offset"/> - - <eval expected="15118" xpath="//flow/block[23]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[23]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[23]/lineArea[1]/@space-after"/> - <eval expected="2168" xpath="//flow/block[23]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="2168" xpath="//flow/block[23]/lineArea[1]/text[2]/@offset"/> + <eval expected="2168" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> - <eval expected="17162" xpath="//flow/block[26]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[26]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[26]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/text[1]/@offset"/> - <eval expected="7912" xpath="//flow/block[26]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/text[2]/@offset"/> + <eval expected="17162" xpath="//flow/block[9]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[9]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[9]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[1]/@offset"/> + <eval expected="7912" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_baseline-shift_2.xml b/test/layoutengine/testcases/inline_baseline-shift_2.xml index 6bc6d60bc..5e7b276b7 100755 --- a/test/layoutengine/testcases/inline_baseline-shift_2.xml +++ b/test/layoutengine/testcases/inline_baseline-shift_2.xml @@ -111,61 +111,62 @@ </fo:root> </fo> <checks> - <eval expected="16415" xpath="//flow/block[2]/lineArea[1]/@bpd"/> + <eval expected="16415" xpath="//flow/block[1]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/> + <eval expected="5487" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="3528" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/> + + <eval expected="14737" xpath="//flow/block[2]/lineArea[1]/@bpd"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/> <eval expected="5487" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="3528" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="-3794" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[2]/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/> - <eval expected="14737" xpath="//flow/block[5]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> - <eval expected="5487" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> + <eval expected="21194" xpath="//flow/block[3]/lineArea[1]/@bpd"/> + <eval expected="8244" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/> + <eval expected="3794" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-3794" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="8244" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/> + + <eval expected="17400" xpath="//flow/block[4]/lineArea[1]/@bpd"/> + <eval expected="4450" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="3528" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="4450" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/> + + <eval expected="15118" xpath="//flow/block[5]/lineArea[1]/@bpd"/> + <eval expected="2168" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-3794" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="7436" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - - <eval expected="21194" xpath="//flow/block[8]/lineArea[1]/@bpd"/> - <eval expected="8244" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> - <eval expected="3794" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-3794" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="8244" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> + <eval expected="2168" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - <eval expected="17400" xpath="//flow/block[11]/lineArea[1]/@bpd"/> - <eval expected="4450" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="3528" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="4450" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/> - - <eval expected="15118" xpath="//flow/block[14]/lineArea[1]/@bpd"/> - <eval expected="2168" xpath="//flow/block[14]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="7436" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="2168" xpath="//flow/block[14]/lineArea[1]/text[2]/@offset"/> - - <eval expected="39060" xpath="//flow/block[17]/lineArea[1]/@bpd"/> - <eval expected="25086" xpath="//flow/block[17]/lineArea[1]/text[1]/@offset"/> - <eval expected="14892" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="1968" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> - <eval expected="-16860" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="25086" xpath="//flow/block[17]/lineArea[1]/text[2]/@offset"/> + <eval expected="39060" xpath="//flow/block[6]/lineArea[1]/@bpd"/> + <eval expected="25086" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/> + <eval expected="14892" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="1968" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> + <eval expected="-16860" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="25086" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/> </checks> </testcase> + diff --git a/test/layoutengine/testcases/inline_baseline-shift_3.xml b/test/layoutengine/testcases/inline_baseline-shift_3.xml index eee8906b7..10f745a18 100755 --- a/test/layoutengine/testcases/inline_baseline-shift_3.xml +++ b/test/layoutengine/testcases/inline_baseline-shift_3.xml @@ -135,76 +135,76 @@ </fo:root> </fo> <checks> - <eval expected="14846" xpath="//flow/block[2]/lineArea[1]/@bpd"/> + <eval expected="14846" xpath="//flow/block[1]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/> + <eval expected="1826" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="5620" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/> + + <eval expected="12950" xpath="//flow/block[2]/lineArea[1]/@bpd"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/> <eval expected="1826" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="5620" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="-1702" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[2]/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/> + + <eval expected="12950" xpath="//flow/block[3]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/> + <eval expected="3700" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-1750" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/> + + <eval expected="13400" xpath="//flow/block[4]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="6000" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/> <eval expected="12950" xpath="//flow/block[5]/lineArea[1]/@bpd"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> <eval expected="1826" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-1702" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="3528" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[2]/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - - <eval expected="12950" xpath="//flow/block[8]/lineArea[1]/@bpd"/> + + <eval expected="14918" xpath="//flow/block[6]/lineArea[1]/@bpd"/> + <eval expected="1968" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/> + <eval expected="3794" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-3794" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="1968" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/> + + <eval expected="12950" xpath="//flow/block[7]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[1]/@offset"/> + <eval expected="3700" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-2992" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[2]/@offset"/> + + <eval expected="17708" xpath="//flow/block[8]/lineArea[1]/@bpd"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> - <eval expected="3700" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-1750" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="10308" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[2]/@offset"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> - - <eval expected="13400" xpath="//flow/block[11]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="6000" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/> - - <eval expected="12950" xpath="//flow/block[14]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[1]/@offset"/> - <eval expected="1826" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="3528" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[2]/@offset"/> - - <eval expected="14918" xpath="//flow/block[17]/lineArea[1]/@bpd"/> - <eval expected="1968" xpath="//flow/block[17]/lineArea[1]/text[1]/@offset"/> - <eval expected="3794" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-3794" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="1968" xpath="//flow/block[17]/lineArea[1]/text[2]/@offset"/> - - <eval expected="12950" xpath="//flow/block[20]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/text[1]/@offset"/> - <eval expected="3700" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-2992" xpath="//flow/block[20]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/text[2]/@offset"/> - - <eval expected="17708" xpath="//flow/block[23]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="10308" xpath="//flow/block[23]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/text[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_baseline-shift_4.xml b/test/layoutengine/testcases/inline_baseline-shift_4.xml index 87055ac0e..c0ade7fbe 100755 --- a/test/layoutengine/testcases/inline_baseline-shift_4.xml +++ b/test/layoutengine/testcases/inline_baseline-shift_4.xml @@ -121,64 +121,64 @@ </fo:root> </fo> <checks> + <eval expected="17100" xpath="//flow/block[1]/lineArea[1]/@bpd"/> + <eval expected="2300" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent[1]/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent[1]/text[1]/@offset"/> + <eval expected="6000" xpath="//flow/block[1]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent[2]/text[1]/@offset"/> + <eval expected="2300" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/> + <eval expected="17100" xpath="//flow/block[2]/lineArea[1]/@bpd"/> - <eval expected="2300" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent[1]/@offset"/> + <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/> + <eval expected="9700" xpath="//flow/block[2]/lineArea[1]/inlineparent[1]/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent[1]/text[1]/@offset"/> - <eval expected="6000" xpath="//flow/block[2]/lineArea[1]/inlineparent[2]/@offset"/> + <eval expected="3700" xpath="//flow/block[2]/lineArea[1]/inlineparent[2]/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent[2]/text[1]/@offset"/> - <eval expected="2300" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/> - - <eval expected="17100" xpath="//flow/block[5]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> - <eval expected="9700" xpath="//flow/block[5]/lineArea[1]/inlineparent[1]/@offset"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent[1]/text[1]/@offset"/> - <eval expected="3700" xpath="//flow/block[5]/lineArea[1]/inlineparent[2]/@offset"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent[2]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/> - <eval expected="16892" xpath="//flow/block[8]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> - <eval expected="5792" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="1436" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> + <eval expected="16892" xpath="//flow/block[3]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/> + <eval expected="5792" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="1436" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/> - <eval expected="23168" xpath="//flow/block[11]/lineArea[1]/@bpd"/> - <eval expected="8368" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> - <eval expected="3700" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-3700" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="5136" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="8368" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/> + <eval expected="23168" xpath="//flow/block[4]/lineArea[1]/@bpd"/> + <eval expected="8368" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/> + <eval expected="3700" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-3700" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="5136" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="8368" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/> - <eval expected="14800" xpath="//flow/block[14]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[1]/@offset"/> - <eval expected="5792" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-2872" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[2]/@offset"/> + <eval expected="14800" xpath="//flow/block[5]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> + <eval expected="5792" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-2872" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - <eval expected="22340" xpath="//flow/block[17]/lineArea[1]/@bpd"/> - <eval expected="7540" xpath="//flow/block[17]/lineArea[1]/text[1]/@offset"/> - <eval expected="2872" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-2872" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> - <eval expected="5550" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/text[2]/@offset"/> - <eval expected="7540" xpath="//flow/block[17]/lineArea[1]/text[2]/@offset"/> + <eval expected="22340" xpath="//flow/block[6]/lineArea[1]/@bpd"/> + <eval expected="7540" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/> + <eval expected="2872" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-2872" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text/@offset"/> + <eval expected="5550" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[2]/@offset"/> + <eval expected="7540" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_border_padding.xml b/test/layoutengine/testcases/inline_border_padding.xml index 08cabc67c..609a09625 100644 --- a/test/layoutengine/testcases/inline_border_padding.xml +++ b/test/layoutengine/testcases/inline_border_padding.xml @@ -59,82 +59,82 @@ </fo:root> </fo> <checks> - <eval expected="48350" xpath="//flow/block[2]/lineArea/inlineparent/@ipd"/> - <eval expected="50350" xpath="//flow/block[2]/lineArea/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[2]/lineArea/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-start"/> + <eval expected="48350" xpath="//flow/block[1]/lineArea/inlineparent/@ipd"/> + <eval expected="50350" xpath="//flow/block[1]/lineArea/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-start"/> - <eval expected="208190" xpath="//flow/block[5]/lineArea/inlineparent/@ipd"/> - <eval expected="228190" xpath="//flow/block[5]/lineArea/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[5]/lineArea/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/inlineparent/@border-start"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/inlineparent/@padding-after"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/inlineparent/@padding-before"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/inlineparent/@padding-start"/> + <eval expected="208190" xpath="//flow/block[2]/lineArea/inlineparent/@ipd"/> + <eval expected="228190" xpath="//flow/block[2]/lineArea/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[2]/lineArea/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-start"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/inlineparent/@padding-after"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/inlineparent/@padding-start"/> - <eval expected="151170" xpath="//flow/block[8]/lineArea/inlineparent/@ipd"/> - <eval expected="163170" xpath="//flow/block[8]/lineArea/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[8]/lineArea/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[8]/lineArea/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[8]/lineArea/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[8]/lineArea/inlineparent/@border-start"/> - <eval expected="3000" xpath="//flow/block[8]/lineArea/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea/inlineparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea/inlineparent/@padding-end"/> - <eval expected="4000" xpath="//flow/block[8]/lineArea/inlineparent/@padding-start"/> + <eval expected="151170" xpath="//flow/block[3]/lineArea/inlineparent/@ipd"/> + <eval expected="163170" xpath="//flow/block[3]/lineArea/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[3]/lineArea/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[3]/lineArea/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[3]/lineArea/inlineparent/@border-start"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea/inlineparent/@padding-before"/> + <eval expected="2000" xpath="//flow/block[3]/lineArea/inlineparent/@padding-end"/> + <eval expected="4000" xpath="//flow/block[3]/lineArea/inlineparent/@padding-start"/> - <eval expected="64464" xpath="//flow/block[11]/lineArea/inlineparent/@ipd"/> - <eval expected="84464" xpath="//flow/block[11]/lineArea/inlineparent/@ipda"/> - <eval expected="8616" xpath="//flow/block[11]/lineArea/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-start"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-after"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-before"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-start"/> + <eval expected="64464" xpath="//flow/block[4]/lineArea/inlineparent/@ipd"/> + <eval expected="84464" xpath="//flow/block[4]/lineArea/inlineparent/@ipda"/> + <eval expected="8616" xpath="//flow/block[4]/lineArea/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/inlineparent/@border-start"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/inlineparent/@padding-after"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/inlineparent/@padding-start"/> - <eval expected="340710" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="343710" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="2000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-start"/> - <eval expected="193840" xpath="//flow/block[14]/lineArea[4]/inlineparent/@ipd"/> - <eval expected="196840" xpath="//flow/block[14]/lineArea[4]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[4]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[4]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[4]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[4]/inlineparent/@border-end"/> - <eval expected="2000" xpath="//flow/block[14]/lineArea[4]/inlineparent/@padding-end"/> + <eval expected="340710" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="343710" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-start"/> + <eval expected="2000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-start"/> + <eval expected="193840" xpath="//flow/block[5]/lineArea[4]/inlineparent/@ipd"/> + <eval expected="196840" xpath="//flow/block[5]/lineArea[4]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[4]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[4]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[4]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[4]/inlineparent/@border-end"/> + <eval expected="2000" xpath="//flow/block[5]/lineArea[4]/inlineparent/@padding-end"/> - <eval expected="118830" xpath="//flow/block[17]/lineArea/inlineparent/@ipd"/> - <eval expected="126830" xpath="//flow/block[17]/lineArea/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[17]/lineArea/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[17]/lineArea/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[17]/lineArea/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[17]/lineArea/inlineparent/@border-start"/> - <eval expected="2000" xpath="//flow/block[17]/lineArea/inlineparent/@padding-end"/> - <eval expected="2000" xpath="//flow/block[17]/lineArea/inlineparent/@padding-start"/> - <eval expected="78930" xpath="//flow/block[17]/lineArea/inlineparent/inlineparent/@ipd"/> - <eval expected="84930" xpath="//flow/block[17]/lineArea/inlineparent/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea/inlineparent/inlineparent/@offset"/> - <eval expected="(solid,#008000,1000)" xpath="//flow/block[17]/lineArea/inlineparent/inlineparent/@border-after"/> - <eval expected="(solid,#008000,1000)" xpath="//flow/block[17]/lineArea/inlineparent/inlineparent/@border-before"/> - <eval expected="(solid,#008000,1000)" xpath="//flow/block[17]/lineArea/inlineparent/inlineparent/@border-end"/> - <eval expected="(solid,#008000,1000)" xpath="//flow/block[17]/lineArea/inlineparent/inlineparent/@border-start"/> - <eval expected="2000" xpath="//flow/block[17]/lineArea/inlineparent/inlineparent/@padding-end"/> - <eval expected="2000" xpath="//flow/block[17]/lineArea/inlineparent/inlineparent/@padding-start"/> + <eval expected="118830" xpath="//flow/block[6]/lineArea/inlineparent/@ipd"/> + <eval expected="126830" xpath="//flow/block[6]/lineArea/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-start"/> + <eval expected="2000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-end"/> + <eval expected="2000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-start"/> + <eval expected="78930" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@ipd"/> + <eval expected="84930" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@offset"/> + <eval expected="(solid,#008000,1000)" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@border-after"/> + <eval expected="(solid,#008000,1000)" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@border-before"/> + <eval expected="(solid,#008000,1000)" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@border-end"/> + <eval expected="(solid,#008000,1000)" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@border-start"/> + <eval expected="2000" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@padding-end"/> + <eval expected="2000" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@padding-start"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_border_padding_block_nested_1.xml b/test/layoutengine/testcases/inline_border_padding_block_nested_1.xml index a3d9e9e4e..fc26c2b8f 100755 --- a/test/layoutengine/testcases/inline_border_padding_block_nested_1.xml +++ b/test/layoutengine/testcases/inline_border_padding_block_nested_1.xml @@ -62,65 +62,65 @@ </fo:root> </fo> <checks> + <eval expected="347000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@ipd"/> + <eval expected="350000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@ipda"/> + <eval expected="3000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-start"/> + <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-after"/> + <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-before"/> + <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-start"/> + <eval expected="46130" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="49130" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-end"/> + + <eval expected="54470" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="57470" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="3000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-start"/> <eval expected="347000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@ipd"/> <eval expected="350000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@ipda"/> - <eval expected="3000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-start"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-end"/> <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-after"/> <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-start"/> - <eval expected="46130" xpath="//flow/block[2]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="49130" xpath="//flow/block[2]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-end"/> - - <eval expected="54470" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="57470" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="347000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@ipda"/> - <eval expected="3000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@border-end"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@padding-after"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@padding-end"/> + <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-end"/> - <eval expected="54470" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="57470" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="350000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@ipda"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@border-before"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@padding-before"/> - <eval expected="46130" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="49130" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="54470" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="57470" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="2000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="2000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@ipd"/> + <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@ipda"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-before"/> + <eval expected="46130" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="49130" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="2000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-end"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_border_padding_block_nested_2.xml b/test/layoutengine/testcases/inline_border_padding_block_nested_2.xml index c7e9210f0..345a2c4c3 100755 --- a/test/layoutengine/testcases/inline_border_padding_block_nested_2.xml +++ b/test/layoutengine/testcases/inline_border_padding_block_nested_2.xml @@ -1,168 +1,168 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Copyright 2005 The Apache Software Foundation - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> -<!-- $Id$ --> -<testcase> - <info> - <p> - This test checks fo:inlines with border and padding properties and nested inner blocks. - </p> - </info> - <fo> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> - <fo:layout-master-set> - <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt"> - <fo:region-body/> - </fo:simple-page-master> - </fo:layout-master-set> - <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en"> - <fo:flow flow-name="xsl-region-body" font-size="10pt"> - <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt"> - Before inline - <fo:inline - border="solid 1pt red" - border-start-width.length="1pt" - border-start-width.conditionality="retain" - border-end-width.length="1pt" - border-end-width.conditionality="retain" - padding="2pt" - padding-start.length="2pt" - padding-start.conditionality="retain" - padding-end.length="2pt" - padding-end.conditionality="retain" - background-color="yellow"><fo:block>starting with a block</fo:block> - after block</fo:inline> - After inline with conditionality="retain" - </fo:block> - <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt"> - Before inline - <fo:inline - border="solid 1pt red" - border-start-width.length="1pt" - border-start-width.conditionality="retain" - border-end-width.length="1pt" - border-end-width.conditionality="retain" - padding="2pt" - padding-start.length="2pt" - padding-start.conditionality="retain" - padding-end.length="2pt" - padding-end.conditionality="retain" - background-color="yellow">before block - <fo:block>having a block at the end of an inline</fo:block></fo:inline> - After inline with conditionality="retain" - </fo:block> - <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt"> - Before inline - <fo:inline - border="solid 1pt red" - border-start-width.length="1pt" - border-start-width.conditionality="retain" - border-end-width.length="1pt" - border-end-width.conditionality="retain" - padding="2pt" - padding-start.length="2pt" - padding-start.conditionality="retain" - padding-end.length="2pt" - padding-end.conditionality="retain" - background-color="yellow">before block - <fo:block>As far as the laws of mathematics refer to reality, they are not certain, - and as far as they are certain, they do not refer to reality - Albert Einstein</fo:block> - after block</fo:inline> - After inline with conditionality="retain" - </fo:block> - </fo:flow> - </fo:page-sequence> - </fo:root> - </fo> - <checks> - <eval expected="344000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@ipda"/> - <eval expected="3000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-start"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-end"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-after"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-start"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-end"/> - <eval expected="46130" xpath="//flow/block[2]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="52130" xpath="//flow/block[2]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-start"/> - <eval expected="2000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-end"/> - - <eval expected="54470" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="60470" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="344000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@ipda"/> - <eval expected="3000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@border-start"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@border-end"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@padding-after"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@padding-start"/> - <eval expected="2000" xpath="//flow/block[5]/lineArea[2]/inlineblockparent/@padding-end"/> - - <eval expected="54470" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="60470" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="344000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@ipda"/> - <eval expected="3000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@border-start"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@border-end"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@padding-after"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@padding-start"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[2]/inlineblockparent/@padding-end"/> - <eval expected="46130" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="52130" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-start"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-end"/> - - </checks> -</testcase> +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2005 The Apache Software Foundation
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Id$ -->
+<testcase>
+ <info>
+ <p>
+ This test checks fo:inlines with border and padding properties and nested inner blocks.
+ </p>
+ </info>
+ <fo>
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
+ <fo:region-body/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
+ <fo:flow flow-name="xsl-region-body" font-size="10pt">
+ <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
+ Before inline
+ <fo:inline
+ border="solid 1pt red"
+ border-start-width.length="1pt"
+ border-start-width.conditionality="retain"
+ border-end-width.length="1pt"
+ border-end-width.conditionality="retain"
+ padding="2pt"
+ padding-start.length="2pt"
+ padding-start.conditionality="retain"
+ padding-end.length="2pt"
+ padding-end.conditionality="retain"
+ background-color="yellow"><fo:block>starting with a block</fo:block>
+ after block</fo:inline>
+ After inline with conditionality="retain"
+ </fo:block>
+ <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
+ Before inline
+ <fo:inline
+ border="solid 1pt red"
+ border-start-width.length="1pt"
+ border-start-width.conditionality="retain"
+ border-end-width.length="1pt"
+ border-end-width.conditionality="retain"
+ padding="2pt"
+ padding-start.length="2pt"
+ padding-start.conditionality="retain"
+ padding-end.length="2pt"
+ padding-end.conditionality="retain"
+ background-color="yellow">before block
+ <fo:block>having a block at the end of an inline</fo:block></fo:inline>
+ After inline with conditionality="retain"
+ </fo:block>
+ <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
+ Before inline
+ <fo:inline
+ border="solid 1pt red"
+ border-start-width.length="1pt"
+ border-start-width.conditionality="retain"
+ border-end-width.length="1pt"
+ border-end-width.conditionality="retain"
+ padding="2pt"
+ padding-start.length="2pt"
+ padding-start.conditionality="retain"
+ padding-end.length="2pt"
+ padding-end.conditionality="retain"
+ background-color="yellow">before block
+ <fo:block>As far as the laws of mathematics refer to reality, they are not certain,
+ and as far as they are certain, they do not refer to reality - Albert Einstein</fo:block>
+ after block</fo:inline>
+ After inline with conditionality="retain"
+ </fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <checks>
+ <eval expected="344000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@ipd"/>
+ <eval expected="350000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@ipda"/>
+ <eval expected="3000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@offset"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-after"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-before"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-start"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-end"/>
+ <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-after"/>
+ <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-before"/>
+ <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-start"/>
+ <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-end"/>
+ <eval expected="46130" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipd"/>
+ <eval expected="52130" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipda"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-after"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-before"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-start"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-end"/>
+ <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-after"/>
+ <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-before"/>
+ <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-start"/>
+ <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-end"/>
+
+ <eval expected="54470" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipd"/>
+ <eval expected="60470" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipda"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-after"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-before"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-start"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-end"/>
+ <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-after"/>
+ <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-before"/>
+ <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-start"/>
+ <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-end"/>
+ <eval expected="344000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@ipd"/>
+ <eval expected="350000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@ipda"/>
+ <eval expected="3000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@offset"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-after"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-before"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-start"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-end"/>
+ <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-after"/>
+ <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-before"/>
+ <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-start"/>
+ <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-end"/>
+
+ <eval expected="54470" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipd"/>
+ <eval expected="60470" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipda"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-after"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-before"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-start"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-end"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-after"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-before"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-start"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-end"/>
+ <eval expected="344000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@ipd"/>
+ <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@ipda"/>
+ <eval expected="3000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@offset"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-after"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-before"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-start"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-end"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-after"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-before"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-start"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-end"/>
+ <eval expected="46130" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipd"/>
+ <eval expected="52130" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipda"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-after"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-before"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-start"/>
+ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-end"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-after"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-before"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-start"/>
+ <eval expected="2000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-end"/>
+
+ </checks>
+</testcase>
diff --git a/test/layoutengine/testcases/inline_border_padding_conditionality_1.xml b/test/layoutengine/testcases/inline_border_padding_conditionality_1.xml index 744b6b33f..86284f868 100755 --- a/test/layoutengine/testcases/inline_border_padding_conditionality_1.xml +++ b/test/layoutengine/testcases/inline_border_padding_conditionality_1.xml @@ -155,6 +155,40 @@ </fo:root> </fo> <checks> + <eval expected="255100" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="265100" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="335720" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="345720" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="35570" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="45570" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-start"/> + <eval expected="255100" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipd"/> <eval expected="265100" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> @@ -189,210 +223,176 @@ <eval expected="3000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-start"/> + <eval expected="259229" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="269229" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="340000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="35570" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="45570" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-start"/> + + <eval expected="216190" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="226190" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="299050" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="309050" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="111150" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="121150" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-start"/> + <eval expected="255100" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="265100" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="261100" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-end"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-start"/> <eval expected="335720" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="345720" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="335720" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[2]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-start"/> <eval expected="35570" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="45570" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="39570" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[3]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-before"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-start"/> - <eval expected="259229" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="269229" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="255100" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="261100" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="335720" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="335720" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="35570" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="39570" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-end"/> + + <eval expected="262613" xpath="//flow/block[7]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="268613" xpath="//flow/block[7]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="350000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="350000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="35570" xpath="//flow/block[7]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="39570" xpath="//flow/block[7]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-end"/> + + <eval expected="216190" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="222190" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-end"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="340000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="310170" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="310170" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[8]/lineArea[2]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="35570" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="45570" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="100030" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="104030" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[8]/lineArea[3]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-before"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="216190" xpath="//flow/block[11]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="226190" xpath="//flow/block[11]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="299050" xpath="//flow/block[11]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="309050" xpath="//flow/block[11]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[2]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="111150" xpath="//flow/block[11]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="121150" xpath="//flow/block[11]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="255100" xpath="//flow/block[14]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="261100" xpath="//flow/block[14]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="5000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="335720" xpath="//flow/block[14]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="335720" xpath="//flow/block[14]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="35570" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="39570" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-end"/> - - <eval expected="255100" xpath="//flow/block[17]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="261100" xpath="//flow/block[17]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="5000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="335720" xpath="//flow/block[17]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="335720" xpath="//flow/block[17]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="35570" xpath="//flow/block[17]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="39570" xpath="//flow/block[17]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-end"/> - - <eval expected="262613" xpath="//flow/block[20]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="268613" xpath="//flow/block[20]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="5000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="350000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="35570" xpath="//flow/block[20]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="39570" xpath="//flow/block[20]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-end"/> - - <eval expected="216190" xpath="//flow/block[23]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="222190" xpath="//flow/block[23]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="5000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="310170" xpath="//flow/block[23]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="310170" xpath="//flow/block[23]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="100030" xpath="//flow/block[23]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="104030" xpath="//flow/block[23]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-end"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_border_padding_conditionality_2.xml b/test/layoutengine/testcases/inline_border_padding_conditionality_2.xml index bb9b50ab5..3e2d4a9b9 100755 --- a/test/layoutengine/testcases/inline_border_padding_conditionality_2.xml +++ b/test/layoutengine/testcases/inline_border_padding_conditionality_2.xml @@ -128,6 +128,36 @@ </fo:root> </fo> <checks> + <eval expected="255100" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="264100" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="335720" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="343720" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="35570" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="44570" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-start"/> + <eval expected="255100" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipd"/> <eval expected="264100" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> @@ -158,154 +188,124 @@ <eval expected="3000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-start"/> - <eval expected="255100" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="264100" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="260075" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="269075" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="342000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="35570" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="44570" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-start"/> + + <eval expected="237870" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="246870" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="317940" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="325940" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="70580" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="79580" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-start"/> + + <eval expected="183960" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="193960" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-end"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="335720" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="343720" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="255680" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="265680" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[2]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="35570" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="44570" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="186750" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="196750" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[3]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-before"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-start"/> - <eval expected="260075" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="269075" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="342000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="35570" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="44570" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="237870" xpath="//flow/block[11]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="246870" xpath="//flow/block[11]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="317940" xpath="//flow/block[11]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="325940" xpath="//flow/block[11]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="70580" xpath="//flow/block[11]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="79580" xpath="//flow/block[11]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="183960" xpath="//flow/block[14]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="193960" xpath="//flow/block[14]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="255680" xpath="//flow/block[14]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="265680" xpath="//flow/block[14]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="186750" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="196750" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="172840" xpath="//flow/block[17]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="178840" xpath="//flow/block[17]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="5000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="266800" xpath="//flow/block[17]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="266800" xpath="//flow/block[17]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="186750" xpath="//flow/block[17]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="190750" xpath="//flow/block[17]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="172840" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="178840" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="266800" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="266800" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="186750" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="190750" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-end"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_border_padding_hyphenate.xml b/test/layoutengine/testcases/inline_border_padding_hyphenate.xml index b2a0444ad..d55fdc934 100755 --- a/test/layoutengine/testcases/inline_border_padding_hyphenate.xml +++ b/test/layoutengine/testcases/inline_border_padding_hyphenate.xml @@ -156,6 +156,32 @@ </fo:root> </fo> <checks> + <eval expected="255100" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="261100" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="335720" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="335720" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="35570" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="39570" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="255100" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipd"/> <eval expected="261100" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> @@ -182,218 +208,192 @@ <eval expected="1000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="262613" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="268613" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="35570" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="39570" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-end"/> + + <eval expected="216190" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="222190" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="310170" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="310170" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="100030" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="104030" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="255100" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="261100" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="265100" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-end"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-start"/> <eval expected="335720" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="335720" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="345720" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[2]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-start"/> <eval expected="35570" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="39570" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="45570" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[3]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-before"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-start"/> + + <eval expected="255100" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="265100" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="335720" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="345720" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="35570" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="45570" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-start"/> + + <eval expected="259229" xpath="//flow/block[7]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="269229" xpath="//flow/block[7]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="340000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="350000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="35570" xpath="//flow/block[7]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="45570" xpath="//flow/block[7]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-start"/> - <eval expected="262613" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="268613" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="216190" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="226190" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-end"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="350000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="299050" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="309050" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[8]/lineArea[2]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="35570" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="39570" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="3000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="111150" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="121150" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[8]/lineArea[3]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-before"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-end"/> - - <eval expected="216190" xpath="//flow/block[11]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="222190" xpath="//flow/block[11]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="310170" xpath="//flow/block[11]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="310170" xpath="//flow/block[11]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="100030" xpath="//flow/block[11]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="104030" xpath="//flow/block[11]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-end"/> - - <eval expected="255100" xpath="//flow/block[14]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="265100" xpath="//flow/block[14]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="335720" xpath="//flow/block[14]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="345720" xpath="//flow/block[14]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="35570" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="45570" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="255100" xpath="//flow/block[17]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="265100" xpath="//flow/block[17]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="335720" xpath="//flow/block[17]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="345720" xpath="//flow/block[17]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="35570" xpath="//flow/block[17]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="45570" xpath="//flow/block[17]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="259229" xpath="//flow/block[20]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="269229" xpath="//flow/block[20]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="340000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[2]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="35570" xpath="//flow/block[20]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="45570" xpath="//flow/block[20]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="216190" xpath="//flow/block[23]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="226190" xpath="//flow/block[23]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="299050" xpath="//flow/block[23]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="309050" xpath="//flow/block[23]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[2]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[23]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[23]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="111150" xpath="//flow/block[23]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="121150" xpath="//flow/block[23]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-start"/> + <eval expected="5000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-start"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_border_padding_hyphenate_de.xml b/test/layoutengine/testcases/inline_border_padding_hyphenate_de.xml index 06bfae0ea..48750c06e 100755 --- a/test/layoutengine/testcases/inline_border_padding_hyphenate_de.xml +++ b/test/layoutengine/testcases/inline_border_padding_hyphenate_de.xml @@ -156,6 +156,32 @@ </fo:root> </fo> <checks> + <eval expected="250110" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="256110" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="348490" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="348490" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="91710" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="95710" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="250110" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipd"/> <eval expected="256110" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> @@ -182,218 +208,192 @@ <eval expected="1000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="250110" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="256110" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="349999" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="349999" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="91710" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="95710" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-end"/> + + <eval expected="238440" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="244440" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="320690" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="320690" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="131180" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="135180" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="250110" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="256110" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="260110" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-end"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="348490" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="348490" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="336820" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="346820" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[2]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="91710" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="95710" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="3000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="103380" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="113380" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[5]/lineArea[3]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-before"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-start"/> + + <eval expected="250110" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="260110" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="336820" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="346820" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="103380" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="113380" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-start"/> + + <eval expected="250110" xpath="//flow/block[7]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="260110" xpath="//flow/block[7]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-start"/> + <eval expected="340000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="350000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[2]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="103380" xpath="//flow/block[7]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="113380" xpath="//flow/block[7]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[3]/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-start"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-start"/> - <eval expected="250110" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="256110" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipda"/> + <eval expected="238440" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/> + <eval expected="248440" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-end"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-before"/> + <eval expected="3000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-end"/> <eval expected="5000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="349999" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="349999" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipda"/> + <eval expected="320690" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipd"/> + <eval expected="330690" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[8]/lineArea[2]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="91710" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="95710" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipda"/> + <eval expected="3000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-start"/> + <eval expected="131180" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/> + <eval expected="141180" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipda"/> <eval expected="0" xpath="//flow/block[8]/lineArea[3]/inlineparent/@offset"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-after"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-before"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-start"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-after"/> <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-before"/> <eval expected="3000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-end"/> - - <eval expected="238440" xpath="//flow/block[11]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="244440" xpath="//flow/block[11]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="320690" xpath="//flow/block[11]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="320690" xpath="//flow/block[11]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="131180" xpath="//flow/block[11]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="135180" xpath="//flow/block[11]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[11]/lineArea[3]/inlineparent/@padding-end"/> - - <eval expected="250110" xpath="//flow/block[14]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="260110" xpath="//flow/block[14]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[14]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="336820" xpath="//flow/block[14]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="346820" xpath="//flow/block[14]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[2]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[14]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="103380" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="113380" xpath="//flow/block[14]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[14]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="250110" xpath="//flow/block[17]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="260110" xpath="//flow/block[17]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[17]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="336820" xpath="//flow/block[17]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="346820" xpath="//flow/block[17]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[2]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[17]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="103380" xpath="//flow/block[17]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="113380" xpath="//flow/block[17]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[17]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[17]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="250110" xpath="//flow/block[20]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="260110" xpath="//flow/block[20]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[20]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="340000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="350000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[2]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[20]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="103380" xpath="//flow/block[20]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="113380" xpath="//flow/block[20]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[20]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[20]/lineArea[3]/inlineparent/@padding-start"/> - - <eval expected="238440" xpath="//flow/block[23]/lineArea[1]/inlineparent/@ipd"/> - <eval expected="248440" xpath="//flow/block[23]/lineArea[1]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[1]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[23]/lineArea[1]/inlineparent/@padding-start"/> - <eval expected="320690" xpath="//flow/block[23]/lineArea[2]/inlineparent/@ipd"/> - <eval expected="330690" xpath="//flow/block[23]/lineArea[2]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[2]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[2]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[2]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[2]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[2]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[2]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[2]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[23]/lineArea[2]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[23]/lineArea[2]/inlineparent/@padding-start"/> - <eval expected="131180" xpath="//flow/block[23]/lineArea[3]/inlineparent/@ipd"/> - <eval expected="141180" xpath="//flow/block[23]/lineArea[3]/inlineparent/@ipda"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[3]/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[23]/lineArea[3]/inlineparent/@border-start"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-before"/> - <eval expected="3000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[23]/lineArea[3]/inlineparent/@padding-start"/> + <eval expected="5000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-start"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_dominant-baseline_1.xml b/test/layoutengine/testcases/inline_dominant-baseline_1.xml index 550bca8cb..e812bc387 100755 --- a/test/layoutengine/testcases/inline_dominant-baseline_1.xml +++ b/test/layoutengine/testcases/inline_dominant-baseline_1.xml @@ -65,64 +65,64 @@ </fo:root> </fo> <checks> + <eval expected="12950" xpath="//flow/block[1]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="12950" xpath="//flow/block[2]/lineArea[1]/@bpd"/> <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-before"/> <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-after"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="12950" xpath="//flow/block[3]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="3700" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/> + + <eval expected="12950" xpath="//flow/block[4]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="2872" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="12950" xpath="//flow/block[5]/lineArea[1]/@bpd"/> <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-before"/> <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-after"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> - <eval expected="2872" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="574" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> + + <eval expected="12950" xpath="//flow/block[6]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="1436" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/> + + <eval expected="12950" xpath="//flow/block[7]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[7]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[7]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="1850" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/@offset"/> <eval expected="12950" xpath="//flow/block[8]/lineArea[1]/@bpd"/> <eval expected="1925" xpath="//flow/block[8]/lineArea[1]/@space-before"/> <eval expected="1925" xpath="//flow/block[8]/lineArea[1]/@space-after"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="3700" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> - - <eval expected="12950" xpath="//flow/block[11]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[11]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[11]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/@offset"/> - - <eval expected="12950" xpath="//flow/block[14]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[14]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[14]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="574" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/@offset"/> - - <eval expected="12950" xpath="//flow/block[17]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[17]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[17]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="1436" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/@offset"/> - - <eval expected="12950" xpath="//flow/block[20]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[20]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[20]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="1850" xpath="//flow/block[20]/lineArea[1]/inlineparent/inlineparent/@offset"/> - - <eval expected="12950" xpath="//flow/block[23]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[23]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[23]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="1826" xpath="//flow/block[23]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="1826" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="12950" xpath="//flow/block[26]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[26]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[26]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/inlineparent/@offset"/> - <eval expected="3700" xpath="//flow/block[26]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="12950" xpath="//flow/block[9]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[9]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[9]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/> + <eval expected="3700" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="12950" xpath="//flow/block[29]/lineArea[1]/@bpd"/> - <eval expected="1925" xpath="//flow/block[29]/lineArea[1]/@space-before"/> - <eval expected="1925" xpath="//flow/block[29]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[29]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[29]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="12950" xpath="//flow/block[10]/lineArea[1]/@bpd"/> + <eval expected="1925" xpath="//flow/block[10]/lineArea[1]/@space-before"/> + <eval expected="1925" xpath="//flow/block[10]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/inlineparent/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_dominant-baseline_2.xml b/test/layoutengine/testcases/inline_dominant-baseline_2.xml index 1d863bfc1..f382e8aa3 100755 --- a/test/layoutengine/testcases/inline_dominant-baseline_2.xml +++ b/test/layoutengine/testcases/inline_dominant-baseline_2.xml @@ -65,64 +65,64 @@ </fo:root> </fo> <checks> + <eval expected="12950" xpath="//flow/block[1]/lineArea[1]/@bpd"/> + <eval expected="1375" xpath="//flow/block[1]/lineArea[1]/@space-before"/> + <eval expected="1375" xpath="//flow/block[1]/lineArea[1]/@space-after"/> + <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="-2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="12950" xpath="//flow/block[2]/lineArea[1]/@bpd"/> <eval expected="1375" xpath="//flow/block[2]/lineArea[1]/@space-before"/> <eval expected="1375" xpath="//flow/block[2]/lineArea[1]/@space-after"/> <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> <eval expected="-2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="12950" xpath="//flow/block[3]/lineArea[1]/@bpd"/> + <eval expected="1375" xpath="//flow/block[3]/lineArea[1]/@space-before"/> + <eval expected="1375" xpath="//flow/block[3]/lineArea[1]/@space-after"/> + <eval expected="3700" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="-3700" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/> + + <eval expected="12950" xpath="//flow/block[4]/lineArea[1]/@bpd"/> + <eval expected="1375" xpath="//flow/block[4]/lineArea[1]/@space-before"/> + <eval expected="1375" xpath="//flow/block[4]/lineArea[1]/@space-after"/> + <eval expected="2872" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="-2872" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="12950" xpath="//flow/block[5]/lineArea[1]/@bpd"/> <eval expected="1375" xpath="//flow/block[5]/lineArea[1]/@space-before"/> <eval expected="1375" xpath="//flow/block[5]/lineArea[1]/@space-after"/> - <eval expected="2872" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> - <eval expected="-2872" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="574" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> + <eval expected="-574" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> + + <eval expected="12950" xpath="//flow/block[6]/lineArea[1]/@bpd"/> + <eval expected="1375" xpath="//flow/block[6]/lineArea[1]/@space-before"/> + <eval expected="1375" xpath="//flow/block[6]/lineArea[1]/@space-after"/> + <eval expected="1436" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="-1436" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/> + + <eval expected="12950" xpath="//flow/block[7]/lineArea[1]/@bpd"/> + <eval expected="1375" xpath="//flow/block[7]/lineArea[1]/@space-before"/> + <eval expected="1375" xpath="//flow/block[7]/lineArea[1]/@space-after"/> + <eval expected="1850" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="-1850" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/@offset"/> <eval expected="12950" xpath="//flow/block[8]/lineArea[1]/@bpd"/> <eval expected="1375" xpath="//flow/block[8]/lineArea[1]/@space-before"/> <eval expected="1375" xpath="//flow/block[8]/lineArea[1]/@space-after"/> - <eval expected="3700" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="-3700" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> - - <eval expected="12950" xpath="//flow/block[11]/lineArea[1]/@bpd"/> - <eval expected="1375" xpath="//flow/block[11]/lineArea[1]/@space-before"/> - <eval expected="1375" xpath="//flow/block[11]/lineArea[1]/@space-after"/> - <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="-2872" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/@offset"/> - - <eval expected="12950" xpath="//flow/block[14]/lineArea[1]/@bpd"/> - <eval expected="1375" xpath="//flow/block[14]/lineArea[1]/@space-before"/> - <eval expected="1375" xpath="//flow/block[14]/lineArea[1]/@space-after"/> - <eval expected="574" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="-574" xpath="//flow/block[14]/lineArea[1]/inlineparent/inlineparent/@offset"/> - - <eval expected="12950" xpath="//flow/block[17]/lineArea[1]/@bpd"/> - <eval expected="1375" xpath="//flow/block[17]/lineArea[1]/@space-before"/> - <eval expected="1375" xpath="//flow/block[17]/lineArea[1]/@space-after"/> - <eval expected="1436" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="-1436" xpath="//flow/block[17]/lineArea[1]/inlineparent/inlineparent/@offset"/> - - <eval expected="12950" xpath="//flow/block[20]/lineArea[1]/@bpd"/> - <eval expected="1375" xpath="//flow/block[20]/lineArea[1]/@space-before"/> - <eval expected="1375" xpath="//flow/block[20]/lineArea[1]/@space-after"/> - <eval expected="1850" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="-1850" xpath="//flow/block[20]/lineArea[1]/inlineparent/inlineparent/@offset"/> - - <eval expected="12950" xpath="//flow/block[23]/lineArea[1]/@bpd"/> - <eval expected="1375" xpath="//flow/block[23]/lineArea[1]/@space-before"/> - <eval expected="1375" xpath="//flow/block[23]/lineArea[1]/@space-after"/> - <eval expected="1826" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="-1826" xpath="//flow/block[23]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="1826" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> + <eval expected="-1826" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="12950" xpath="//flow/block[26]/lineArea[1]/@bpd"/> - <eval expected="1375" xpath="//flow/block[26]/lineArea[1]/@space-before"/> - <eval expected="1375" xpath="//flow/block[26]/lineArea[1]/@space-after"/> - <eval expected="3700" xpath="//flow/block[26]/lineArea[1]/inlineparent/@offset"/> - <eval expected="-3700" xpath="//flow/block[26]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="12950" xpath="//flow/block[9]/lineArea[1]/@bpd"/> + <eval expected="1375" xpath="//flow/block[9]/lineArea[1]/@space-before"/> + <eval expected="1375" xpath="//flow/block[9]/lineArea[1]/@space-after"/> + <eval expected="3700" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/> + <eval expected="-3700" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="12950" xpath="//flow/block[29]/lineArea[1]/@bpd"/> - <eval expected="1375" xpath="//flow/block[29]/lineArea[1]/@space-before"/> - <eval expected="1375" xpath="//flow/block[29]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[29]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[29]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="12950" xpath="//flow/block[10]/lineArea[1]/@bpd"/> + <eval expected="1375" xpath="//flow/block[10]/lineArea[1]/@space-before"/> + <eval expected="1375" xpath="//flow/block[10]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/inlineparent/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_dominant-baseline_3.xml b/test/layoutengine/testcases/inline_dominant-baseline_3.xml index 8b1056f62..4d09ad57b 100755 --- a/test/layoutengine/testcases/inline_dominant-baseline_3.xml +++ b/test/layoutengine/testcases/inline_dominant-baseline_3.xml @@ -80,36 +80,36 @@ </fo:root> </fo> <checks> + <eval expected="14800" xpath="//flow/block[1]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/> + <eval expected="5744" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="1850" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/> + <eval expected="14800" xpath="//flow/block[2]/lineArea[1]/@bpd"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/> <eval expected="5744" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="1850" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/> - <eval expected="14800" xpath="//flow/block[5]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> - <eval expected="5744" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - - <eval expected="14800" xpath="//flow/block[8]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> - <eval expected="5744" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-3700" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> + <eval expected="14800" xpath="//flow/block[3]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/> + <eval expected="5744" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-3700" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/> - <eval expected="15018" xpath="//flow/block[11]/lineArea[1]/@bpd"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> - <eval expected="5744" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/text[1]/@offset"/> - <eval expected="-1826" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/> + <eval expected="15018" xpath="//flow/block[4]/lineArea[1]/@bpd"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/> + <eval expected="5744" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/> + <eval expected="-1826" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_vertical-align_1.xml b/test/layoutengine/testcases/inline_vertical-align_1.xml index 1ff5ca2f1..457b4a898 100755 --- a/test/layoutengine/testcases/inline_vertical-align_1.xml +++ b/test/layoutengine/testcases/inline_vertical-align_1.xml @@ -68,6 +68,13 @@ </fo:root> </fo> <checks> + <eval expected="18500" xpath="//flow/block[1]/lineArea[1]/@bpd"/> + <eval expected="2750" xpath="//flow/block[1]/lineArea[1]/@space-before"/> + <eval expected="2750" xpath="//flow/block[1]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/> + <eval expected="7180" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/> + <eval expected="18500" xpath="//flow/block[2]/lineArea[1]/@bpd"/> <eval expected="2750" xpath="//flow/block[2]/lineArea[1]/@space-before"/> <eval expected="2750" xpath="//flow/block[2]/lineArea[1]/@space-after"/> @@ -75,74 +82,67 @@ <eval expected="7180" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/> + <eval expected="18500" xpath="//flow/block[3]/lineArea[1]/@bpd"/> + <eval expected="2750" xpath="//flow/block[3]/lineArea[1]/@space-before"/> + <eval expected="2750" xpath="//flow/block[3]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/> + + <eval expected="18500" xpath="//flow/block[4]/lineArea[1]/@bpd"/> + <eval expected="2750" xpath="//flow/block[4]/lineArea[1]/@space-before"/> + <eval expected="2750" xpath="//flow/block[4]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/> + <eval expected="18500" xpath="//flow/block[5]/lineArea[1]/@bpd"/> <eval expected="2750" xpath="//flow/block[5]/lineArea[1]/@space-before"/> <eval expected="2750" xpath="//flow/block[5]/lineArea[1]/@space-after"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/> - <eval expected="7180" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> + <eval expected="4565" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/> - <eval expected="18500" xpath="//flow/block[8]/lineArea[1]/@bpd"/> + <eval expected="18500" xpath="//flow/block[6]/lineArea[1]/@bpd"/> + <eval expected="2750" xpath="//flow/block[6]/lineArea[1]/@space-before"/> + <eval expected="2750" xpath="//flow/block[6]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/> + <eval expected="9250" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/> + + <eval expected="18500" xpath="//flow/block[7]/lineArea[1]/@bpd"/> + <eval expected="2750" xpath="//flow/block[7]/lineArea[1]/@space-before"/> + <eval expected="2750" xpath="//flow/block[7]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[1]/@offset"/> + <eval expected="9250" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[2]/@offset"/> + + <eval expected="21780" xpath="//flow/block[8]/lineArea[1]/@bpd"/> <eval expected="2750" xpath="//flow/block[8]/lineArea[1]/@space-before"/> <eval expected="2750" xpath="//flow/block[8]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> + <eval expected="3280" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/> <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> + <eval expected="3280" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/> + + <eval expected="19045" xpath="//flow/block[9]/lineArea[1]/@bpd"/> + <eval expected="2750" xpath="//flow/block[9]/lineArea[1]/@space-before"/> + <eval expected="2750" xpath="//flow/block[9]/lineArea[1]/@space-after"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[1]/@offset"/> + <eval expected="9795" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/> + <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[2]/@offset"/> + + <eval expected="28960" xpath="//flow/block[10]/lineArea[1]/@bpd"/> + <eval expected="2750" xpath="//flow/block[10]/lineArea[1]/@space-before"/> + <eval expected="2750" xpath="//flow/block[10]/lineArea[1]/@space-after"/> + <eval expected="10460" xpath="//flow/block[10]/lineArea[1]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/> + <eval expected="10460" xpath="//flow/block[10]/lineArea[1]/text[2]/@offset"/> - <eval expected="18500" xpath="//flow/block[11]/lineArea[1]/@bpd"/> + <eval expected="23730" xpath="//flow/block[11]/lineArea[1]/@bpd"/> <eval expected="2750" xpath="//flow/block[11]/lineArea[1]/@space-before"/> <eval expected="2750" xpath="//flow/block[11]/lineArea[1]/@space-after"/> <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> + <eval expected="5230" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/> <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/> - - <eval expected="18500" xpath="//flow/block[14]/lineArea[1]/@bpd"/> - <eval expected="2750" xpath="//flow/block[14]/lineArea[1]/@space-before"/> - <eval expected="2750" xpath="//flow/block[14]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[1]/@offset"/> - <eval expected="4565" xpath="//flow/block[14]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[1]/text[2]/@offset"/> - - <eval expected="18500" xpath="//flow/block[17]/lineArea[1]/@bpd"/> - <eval expected="2750" xpath="//flow/block[17]/lineArea[1]/@space-before"/> - <eval expected="2750" xpath="//flow/block[17]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/text[1]/@offset"/> - <eval expected="9250" xpath="//flow/block[17]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[17]/lineArea[1]/text[2]/@offset"/> - - <eval expected="18500" xpath="//flow/block[20]/lineArea[1]/@bpd"/> - <eval expected="2750" xpath="//flow/block[20]/lineArea[1]/@space-before"/> - <eval expected="2750" xpath="//flow/block[20]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/text[1]/@offset"/> - <eval expected="9250" xpath="//flow/block[20]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[20]/lineArea[1]/text[2]/@offset"/> - - <eval expected="21780" xpath="//flow/block[23]/lineArea[1]/@bpd"/> - <eval expected="2750" xpath="//flow/block[23]/lineArea[1]/@space-before"/> - <eval expected="2750" xpath="//flow/block[23]/lineArea[1]/@space-after"/> - <eval expected="3280" xpath="//flow/block[23]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[23]/lineArea[1]/inlineparent/@offset"/> - <eval expected="3280" xpath="//flow/block[23]/lineArea[1]/text[2]/@offset"/> - - <eval expected="19045" xpath="//flow/block[26]/lineArea[1]/@bpd"/> - <eval expected="2750" xpath="//flow/block[26]/lineArea[1]/@space-before"/> - <eval expected="2750" xpath="//flow/block[26]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/text[1]/@offset"/> - <eval expected="9795" xpath="//flow/block[26]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[26]/lineArea[1]/text[2]/@offset"/> - - <eval expected="28960" xpath="//flow/block[29]/lineArea[1]/@bpd"/> - <eval expected="2750" xpath="//flow/block[29]/lineArea[1]/@space-before"/> - <eval expected="2750" xpath="//flow/block[29]/lineArea[1]/@space-after"/> - <eval expected="10460" xpath="//flow/block[29]/lineArea[1]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[29]/lineArea[1]/inlineparent/@offset"/> - <eval expected="10460" xpath="//flow/block[29]/lineArea[1]/text[2]/@offset"/> - - <eval expected="23730" xpath="//flow/block[32]/lineArea[1]/@bpd"/> - <eval expected="2750" xpath="//flow/block[32]/lineArea[1]/@space-before"/> - <eval expected="2750" xpath="//flow/block[32]/lineArea[1]/@space-after"/> - <eval expected="0" xpath="//flow/block[32]/lineArea[1]/text[1]/@offset"/> - <eval expected="5230" xpath="//flow/block[32]/lineArea[1]/inlineparent/@offset"/> - <eval expected="0" xpath="//flow/block[32]/lineArea[1]/text[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/inline_vertical-align_2.xml b/test/layoutengine/testcases/inline_vertical-align_2.xml index 53749b355..64d401957 100755 --- a/test/layoutengine/testcases/inline_vertical-align_2.xml +++ b/test/layoutengine/testcases/inline_vertical-align_2.xml @@ -70,52 +70,52 @@ </fo:root> </fo> <checks> - <eval expected="48812" xpath="//flow/block[2]/lineArea[2]/text[1]/@offset"/> + <eval expected="48812" xpath="//flow/block[1]/lineArea[2]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[2]/viewport[1]/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[2]/viewport[2]/@offset"/> + <eval expected="48812" xpath="//flow/block[1]/lineArea[2]/text[2]/@offset"/> + <eval expected="35995" xpath="//flow/block[1]/lineArea[2]/viewport[3]/@offset"/> + <eval expected="17998" xpath="//flow/block[1]/lineArea[2]/viewport[4]/@offset"/> + <eval expected="48812" xpath="//flow/block[1]/lineArea[2]/text[3]/@offset"/> + <eval expected="34379" xpath="//flow/block[1]/lineArea[2]/viewport[5]/@offset"/> + <eval expected="48812" xpath="//flow/block[1]/lineArea[2]/text[4]/@offset"/> + <eval expected="0" xpath="//flow/block[1]/lineArea[2]/viewport[6]/@offset"/> + <eval expected="48812" xpath="//flow/block[1]/lineArea[2]/text[5]/@offset"/> + + <eval expected="14433" xpath="//flow/block[2]/lineArea[2]/text[1]/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[2]/viewport[1]/@offset"/> <eval expected="0" xpath="//flow/block[2]/lineArea[2]/viewport[2]/@offset"/> - <eval expected="48812" xpath="//flow/block[2]/lineArea[2]/text[2]/@offset"/> + <eval expected="14433" xpath="//flow/block[2]/lineArea[2]/text[2]/@offset"/> <eval expected="35995" xpath="//flow/block[2]/lineArea[2]/viewport[3]/@offset"/> <eval expected="17998" xpath="//flow/block[2]/lineArea[2]/viewport[4]/@offset"/> - <eval expected="48812" xpath="//flow/block[2]/lineArea[2]/text[3]/@offset"/> - <eval expected="34379" xpath="//flow/block[2]/lineArea[2]/viewport[5]/@offset"/> - <eval expected="48812" xpath="//flow/block[2]/lineArea[2]/text[4]/@offset"/> - <eval expected="0" xpath="//flow/block[2]/lineArea[2]/viewport[6]/@offset"/> - <eval expected="48812" xpath="//flow/block[2]/lineArea[2]/text[5]/@offset"/> + <eval expected="14433" xpath="//flow/block[2]/lineArea[2]/text[3]/@offset"/> + <eval expected="0" xpath="//flow/block[2]/lineArea[2]/viewport[5]/@offset"/> + <eval expected="14433" xpath="//flow/block[2]/lineArea[2]/text[4]/@offset"/> + + <eval expected="0" xpath="//flow/block[3]/lineArea[2]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[2]/viewport[1]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[2]/viewport[2]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[2]/text[2]/@offset"/> + <eval expected="35995" xpath="//flow/block[3]/lineArea[2]/viewport[3]/@offset"/> + <eval expected="17998" xpath="//flow/block[3]/lineArea[2]/viewport[4]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea[2]/text[3]/@offset"/> + + <eval expected="0" xpath="//flow/block[4]/lineArea[2]/text[1]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[2]/viewport[1]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[2]/viewport[2]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[2]/text[2]/@offset"/> + <eval expected="35995" xpath="//flow/block[4]/lineArea[2]/viewport[3]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[2]/viewport[4]/@offset"/> + <eval expected="0" xpath="//flow/block[4]/lineArea[2]/text[3]/@offset"/> <eval expected="14433" xpath="//flow/block[5]/lineArea[2]/text[1]/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[2]/viewport[1]/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[2]/viewport[2]/@offset"/> <eval expected="14433" xpath="//flow/block[5]/lineArea[2]/text[2]/@offset"/> <eval expected="35995" xpath="//flow/block[5]/lineArea[2]/viewport[3]/@offset"/> - <eval expected="17998" xpath="//flow/block[5]/lineArea[2]/viewport[4]/@offset"/> + <eval expected="0" xpath="//flow/block[5]/lineArea[2]/viewport[4]/@offset"/> <eval expected="14433" xpath="//flow/block[5]/lineArea[2]/text[3]/@offset"/> <eval expected="0" xpath="//flow/block[5]/lineArea[2]/viewport[5]/@offset"/> <eval expected="14433" xpath="//flow/block[5]/lineArea[2]/text[4]/@offset"/> - - <eval expected="0" xpath="//flow/block[8]/lineArea[2]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[2]/viewport[1]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[2]/viewport[2]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[2]/text[2]/@offset"/> - <eval expected="35995" xpath="//flow/block[8]/lineArea[2]/viewport[3]/@offset"/> - <eval expected="17998" xpath="//flow/block[8]/lineArea[2]/viewport[4]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea[2]/text[3]/@offset"/> - - <eval expected="0" xpath="//flow/block[11]/lineArea[2]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[2]/viewport[1]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[2]/viewport[2]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[2]/text[2]/@offset"/> - <eval expected="35995" xpath="//flow/block[11]/lineArea[2]/viewport[3]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[2]/viewport[4]/@offset"/> - <eval expected="0" xpath="//flow/block[11]/lineArea[2]/text[3]/@offset"/> - - <eval expected="14433" xpath="//flow/block[14]/lineArea[2]/text[1]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[2]/viewport[1]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[2]/viewport[2]/@offset"/> - <eval expected="14433" xpath="//flow/block[14]/lineArea[2]/text[2]/@offset"/> - <eval expected="35995" xpath="//flow/block[14]/lineArea[2]/viewport[3]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[2]/viewport[4]/@offset"/> - <eval expected="14433" xpath="//flow/block[14]/lineArea[2]/text[3]/@offset"/> - <eval expected="0" xpath="//flow/block[14]/lineArea[2]/viewport[5]/@offset"/> - <eval expected="14433" xpath="//flow/block[14]/lineArea[2]/text[4]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/leader_border_padding.xml b/test/layoutengine/testcases/leader_border_padding.xml index 6c0c99a75..aa89bcbfa 100755 --- a/test/layoutengine/testcases/leader_border_padding.xml +++ b/test/layoutengine/testcases/leader_border_padding.xml @@ -141,116 +141,116 @@ <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea/space/@border-end"/> <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea/space/@border-start"/> + <eval expected="11100" xpath="//flow/block[6]/lineArea/@bpd"/> + <eval expected="360000" xpath="//flow/block[6]/lineArea/@ipd"/> + <eval expected="16000" xpath="//flow/block[6]/lineArea/inlineparent/@ipd"/> + <eval expected="36000" xpath="//flow/block[6]/lineArea/inlineparent/@ipda"/> + <eval expected="5280" xpath="//flow/block[6]/lineArea/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-start"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-after"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-before"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-end"/> + <eval expected="5000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-start"/> + <eval expected="11100" xpath="//flow/block[7]/lineArea/@bpd"/> <eval expected="360000" xpath="//flow/block[7]/lineArea/@ipd"/> - <eval expected="16000" xpath="//flow/block[7]/lineArea/inlineparent/@ipd"/> - <eval expected="36000" xpath="//flow/block[7]/lineArea/inlineparent/@ipda"/> - <eval expected="5280" xpath="//flow/block[7]/lineArea/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/inlineparent/@border-start"/> - <eval expected="5000" xpath="//flow/block[7]/lineArea/inlineparent/@padding-after"/> - <eval expected="5000" xpath="//flow/block[7]/lineArea/inlineparent/@padding-before"/> - <eval expected="5000" xpath="//flow/block[7]/lineArea/inlineparent/@padding-end"/> - <eval expected="5000" xpath="//flow/block[7]/lineArea/inlineparent/@padding-start"/> + <eval expected="16000" xpath="//flow/block[7]/lineArea/leader/@ipd"/> + <eval expected="36000" xpath="//flow/block[7]/lineArea/leader/@ipda"/> + <eval expected="7616" xpath="//flow/block[7]/lineArea/leader/@offset"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/leader/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/leader/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/leader/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/leader/@border-start"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea/leader/@padding-after"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea/leader/@padding-before"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea/leader/@padding-end"/> + <eval expected="5000" xpath="//flow/block[7]/lineArea/leader/@padding-start"/> + + <eval expected="11100" xpath="//flow/block[8]/lineArea/@bpd"/> + <eval expected="360000" xpath="//flow/block[8]/lineArea/@ipd"/> + <eval expected="16000" xpath="//flow/block[8]/lineArea/leader/@ipd"/> + <eval expected="36000" xpath="//flow/block[8]/lineArea/leader/@ipda"/> + <eval expected="7616" xpath="//flow/block[8]/lineArea/leader/@offset"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[8]/lineArea/leader/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[8]/lineArea/leader/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[8]/lineArea/leader/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[8]/lineArea/leader/@border-start"/> + <eval expected="5000" xpath="//flow/block[8]/lineArea/leader/@padding-after"/> + <eval expected="5000" xpath="//flow/block[8]/lineArea/leader/@padding-before"/> + <eval expected="5000" xpath="//flow/block[8]/lineArea/leader/@padding-end"/> + <eval expected="5000" xpath="//flow/block[8]/lineArea/leader/@padding-start"/> + + <eval expected="11100" xpath="//flow/block[9]/lineArea/@bpd"/> + <eval expected="360000" xpath="//flow/block[9]/lineArea/@ipd"/> + <eval expected="16000" xpath="//flow/block[9]/lineArea/space/@ipd"/> + <eval expected="36000" xpath="//flow/block[9]/lineArea/space/@ipda"/> + <eval expected="8615" xpath="//flow/block[9]/lineArea/space/@offset"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[9]/lineArea/space/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[9]/lineArea/space/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[9]/lineArea/space/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[9]/lineArea/space/@border-start"/> + <eval expected="5000" xpath="//flow/block[9]/lineArea/space/@padding-after"/> + <eval expected="5000" xpath="//flow/block[9]/lineArea/space/@padding-before"/> + <eval expected="5000" xpath="//flow/block[9]/lineArea/space/@padding-end"/> + <eval expected="5000" xpath="//flow/block[9]/lineArea/space/@padding-start"/> + + <eval expected="11100" xpath="//flow/block[11]/lineArea/@bpd"/> + <eval expected="360000" xpath="//flow/block[11]/lineArea/@ipd"/> + <eval expected="24000" xpath="//flow/block[11]/lineArea/inlineparent/@ipd"/> + <eval expected="36000" xpath="//flow/block[11]/lineArea/inlineparent/@ipda"/> + <eval expected="5280" xpath="//flow/block[11]/lineArea/inlineparent/@offset"/> + <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-before"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-end"/> + <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-start"/> + <eval expected="3000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-after"/> + <eval expected="1000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-before"/> + <eval expected="2000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-end"/> + <eval expected="4000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-start"/> - <eval expected="11100" xpath="//flow/block[10]/lineArea/@bpd"/> - <eval expected="360000" xpath="//flow/block[10]/lineArea/@ipd"/> - <eval expected="16000" xpath="//flow/block[10]/lineArea/leader/@ipd"/> - <eval expected="36000" xpath="//flow/block[10]/lineArea/leader/@ipda"/> - <eval expected="7616" xpath="//flow/block[10]/lineArea/leader/@offset"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[10]/lineArea/leader/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[10]/lineArea/leader/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[10]/lineArea/leader/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[10]/lineArea/leader/@border-start"/> - <eval expected="5000" xpath="//flow/block[10]/lineArea/leader/@padding-after"/> - <eval expected="5000" xpath="//flow/block[10]/lineArea/leader/@padding-before"/> - <eval expected="5000" xpath="//flow/block[10]/lineArea/leader/@padding-end"/> - <eval expected="5000" xpath="//flow/block[10]/lineArea/leader/@padding-start"/> + <eval expected="11100" xpath="//flow/block[12]/lineArea/@bpd"/> + <eval expected="360000" xpath="//flow/block[12]/lineArea/@ipd"/> + <eval expected="24000" xpath="//flow/block[12]/lineArea/leader/@ipd"/> + <eval expected="36000" xpath="//flow/block[12]/lineArea/leader/@ipda"/> + <eval expected="7616" xpath="//flow/block[12]/lineArea/leader/@offset"/> + <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[12]/lineArea/leader/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[12]/lineArea/leader/@border-before"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[12]/lineArea/leader/@border-end"/> + <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[12]/lineArea/leader/@border-start"/> + <eval expected="3000" xpath="//flow/block[12]/lineArea/leader/@padding-after"/> + <eval expected="1000" xpath="//flow/block[12]/lineArea/leader/@padding-before"/> + <eval expected="2000" xpath="//flow/block[12]/lineArea/leader/@padding-end"/> + <eval expected="4000" xpath="//flow/block[12]/lineArea/leader/@padding-start"/> <eval expected="11100" xpath="//flow/block[13]/lineArea/@bpd"/> <eval expected="360000" xpath="//flow/block[13]/lineArea/@ipd"/> - <eval expected="16000" xpath="//flow/block[13]/lineArea/leader/@ipd"/> + <eval expected="24000" xpath="//flow/block[13]/lineArea/leader/@ipd"/> <eval expected="36000" xpath="//flow/block[13]/lineArea/leader/@ipda"/> <eval expected="7616" xpath="//flow/block[13]/lineArea/leader/@offset"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[13]/lineArea/leader/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[13]/lineArea/leader/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[13]/lineArea/leader/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[13]/lineArea/leader/@border-start"/> - <eval expected="5000" xpath="//flow/block[13]/lineArea/leader/@padding-after"/> - <eval expected="5000" xpath="//flow/block[13]/lineArea/leader/@padding-before"/> - <eval expected="5000" xpath="//flow/block[13]/lineArea/leader/@padding-end"/> - <eval expected="5000" xpath="//flow/block[13]/lineArea/leader/@padding-start"/> - - <eval expected="11100" xpath="//flow/block[16]/lineArea/@bpd"/> - <eval expected="360000" xpath="//flow/block[16]/lineArea/@ipd"/> - <eval expected="16000" xpath="//flow/block[16]/lineArea/space/@ipd"/> - <eval expected="36000" xpath="//flow/block[16]/lineArea/space/@ipda"/> - <eval expected="8615" xpath="//flow/block[16]/lineArea/space/@offset"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[16]/lineArea/space/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[16]/lineArea/space/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[16]/lineArea/space/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[16]/lineArea/space/@border-start"/> - <eval expected="5000" xpath="//flow/block[16]/lineArea/space/@padding-after"/> - <eval expected="5000" xpath="//flow/block[16]/lineArea/space/@padding-before"/> - <eval expected="5000" xpath="//flow/block[16]/lineArea/space/@padding-end"/> - <eval expected="5000" xpath="//flow/block[16]/lineArea/space/@padding-start"/> - - <eval expected="11100" xpath="//flow/block[22]/lineArea/@bpd"/> - <eval expected="360000" xpath="//flow/block[22]/lineArea/@ipd"/> - <eval expected="24000" xpath="//flow/block[22]/lineArea/inlineparent/@ipd"/> - <eval expected="36000" xpath="//flow/block[22]/lineArea/inlineparent/@ipda"/> - <eval expected="5280" xpath="//flow/block[22]/lineArea/inlineparent/@offset"/> - <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[22]/lineArea/inlineparent/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[22]/lineArea/inlineparent/@border-before"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[22]/lineArea/inlineparent/@border-end"/> - <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[22]/lineArea/inlineparent/@border-start"/> - <eval expected="3000" xpath="//flow/block[22]/lineArea/inlineparent/@padding-after"/> - <eval expected="1000" xpath="//flow/block[22]/lineArea/inlineparent/@padding-before"/> - <eval expected="2000" xpath="//flow/block[22]/lineArea/inlineparent/@padding-end"/> - <eval expected="4000" xpath="//flow/block[22]/lineArea/inlineparent/@padding-start"/> - - <eval expected="11100" xpath="//flow/block[25]/lineArea/@bpd"/> - <eval expected="360000" xpath="//flow/block[25]/lineArea/@ipd"/> - <eval expected="24000" xpath="//flow/block[25]/lineArea/leader/@ipd"/> - <eval expected="36000" xpath="//flow/block[25]/lineArea/leader/@ipda"/> - <eval expected="7616" xpath="//flow/block[25]/lineArea/leader/@offset"/> - <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[25]/lineArea/leader/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[25]/lineArea/leader/@border-before"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[25]/lineArea/leader/@border-end"/> - <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[25]/lineArea/leader/@border-start"/> - <eval expected="3000" xpath="//flow/block[25]/lineArea/leader/@padding-after"/> - <eval expected="1000" xpath="//flow/block[25]/lineArea/leader/@padding-before"/> - <eval expected="2000" xpath="//flow/block[25]/lineArea/leader/@padding-end"/> - <eval expected="4000" xpath="//flow/block[25]/lineArea/leader/@padding-start"/> - - <eval expected="11100" xpath="//flow/block[28]/lineArea/@bpd"/> - <eval expected="360000" xpath="//flow/block[28]/lineArea/@ipd"/> - <eval expected="24000" xpath="//flow/block[28]/lineArea/leader/@ipd"/> - <eval expected="36000" xpath="//flow/block[28]/lineArea/leader/@ipda"/> - <eval expected="7616" xpath="//flow/block[28]/lineArea/leader/@offset"/> - <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[28]/lineArea/leader/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[28]/lineArea/leader/@border-before"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[28]/lineArea/leader/@border-end"/> - <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[28]/lineArea/leader/@border-start"/> - <eval expected="3000" xpath="//flow/block[28]/lineArea/leader/@padding-after"/> - <eval expected="1000" xpath="//flow/block[28]/lineArea/leader/@padding-before"/> - <eval expected="2000" xpath="//flow/block[28]/lineArea/leader/@padding-end"/> - <eval expected="4000" xpath="//flow/block[28]/lineArea/leader/@padding-start"/> + <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[13]/lineArea/leader/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[13]/lineArea/leader/@border-before"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[13]/lineArea/leader/@border-end"/> + <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[13]/lineArea/leader/@border-start"/> + <eval expected="3000" xpath="//flow/block[13]/lineArea/leader/@padding-after"/> + <eval expected="1000" xpath="//flow/block[13]/lineArea/leader/@padding-before"/> + <eval expected="2000" xpath="//flow/block[13]/lineArea/leader/@padding-end"/> + <eval expected="4000" xpath="//flow/block[13]/lineArea/leader/@padding-start"/> - <eval expected="11100" xpath="//flow/block[31]/lineArea/@bpd"/> - <eval expected="360000" xpath="//flow/block[31]/lineArea/@ipd"/> - <eval expected="24000" xpath="//flow/block[31]/lineArea/space/@ipd"/> - <eval expected="36000" xpath="//flow/block[31]/lineArea/space/@ipda"/> - <eval expected="8615" xpath="//flow/block[31]/lineArea/space/@offset"/> - <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[31]/lineArea/space/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[31]/lineArea/space/@border-before"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[31]/lineArea/space/@border-end"/> - <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[31]/lineArea/space/@border-start"/> - <eval expected="3000" xpath="//flow/block[31]/lineArea/space/@padding-after"/> - <eval expected="1000" xpath="//flow/block[31]/lineArea/space/@padding-before"/> - <eval expected="2000" xpath="//flow/block[31]/lineArea/space/@padding-end"/> - <eval expected="4000" xpath="//flow/block[31]/lineArea/space/@padding-start"/> + <eval expected="11100" xpath="//flow/block[14]/lineArea/@bpd"/> + <eval expected="360000" xpath="//flow/block[14]/lineArea/@ipd"/> + <eval expected="24000" xpath="//flow/block[14]/lineArea/space/@ipd"/> + <eval expected="36000" xpath="//flow/block[14]/lineArea/space/@ipda"/> + <eval expected="8615" xpath="//flow/block[14]/lineArea/space/@offset"/> + <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[14]/lineArea/space/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea/space/@border-before"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[14]/lineArea/space/@border-end"/> + <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[14]/lineArea/space/@border-start"/> + <eval expected="3000" xpath="//flow/block[14]/lineArea/space/@padding-after"/> + <eval expected="1000" xpath="//flow/block[14]/lineArea/space/@padding-before"/> + <eval expected="2000" xpath="//flow/block[14]/lineArea/space/@padding-end"/> + <eval expected="4000" xpath="//flow/block[14]/lineArea/space/@padding-start"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/list-block_border_padding.xml b/test/layoutengine/testcases/list-block_border_padding.xml index 88bd983b1..c26d2a2bc 100644 --- a/test/layoutengine/testcases/list-block_border_padding.xml +++ b/test/layoutengine/testcases/list-block_border_padding.xml @@ -66,124 +66,124 @@ <eval expected="360000" xpath="//flow/@ipd"/> <!-- spacer block for space-before on list-block --> - <eval expected="5000" xpath="//flow/block[2]/@bpd"/> + <eval expected="5000" xpath="//flow/block[2]/@space-before"/> <!-- list-block --> - <eval expected="360000" xpath="//flow/block[3]/@ipda"/> - <eval expected="340000" xpath="//flow/block[3]/@ipd"/> - <!--eval expected="??" xpath="//flow/block[3]/@bpda"/> - <eval expected="??" xpath="//flow/block[3]/@bpd"/--> - <eval expected="10000 10000 10000 10000" xpath="//flow/block[3]/@bap"/> - <eval expected="5000" xpath="//flow/block[3]/@padding-before"/> - <eval expected="5000" xpath="//flow/block[3]/@padding-after"/> - <eval expected="5000" xpath="//flow/block[3]/@padding-start"/> - <eval expected="5000" xpath="//flow/block[3]/@padding-end"/> - <eval expected="10000" xpath="//flow/block[3]/@start-indent"/> - <eval expected="10000" xpath="//flow/block[3]/@end-indent"/> + <eval expected="360000" xpath="//flow/block[2]/@ipda"/> + <eval expected="340000" xpath="//flow/block[2]/@ipd"/> + <!--eval expected="??" xpath="//flow/block[2]/@bpda"/> + <eval expected="??" xpath="//flow/block[2]/@bpd"/--> + <eval expected="10000 10000 10000 10000" xpath="//flow/block[2]/@bap"/> + <eval expected="5000" xpath="//flow/block[2]/@padding-before"/> + <eval expected="5000" xpath="//flow/block[2]/@padding-after"/> + <eval expected="5000" xpath="//flow/block[2]/@padding-start"/> + <eval expected="5000" xpath="//flow/block[2]/@padding-end"/> + <eval expected="10000" xpath="//flow/block[2]/@start-indent"/> + <eval expected="10000" xpath="//flow/block[2]/@end-indent"/> <!-- first list-item --> - <eval expected="340000" xpath="//flow/block[3]/block[1]/@ipda"/> - <eval expected="340000" xpath="//flow/block[3]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[1]/@bpda"/> - <eval expected="14400" xpath="//flow/block[3]/block[1]/@bpd"/> - <eval expected="10000" xpath="//flow/block[3]/block[1]/@start-indent"/> - <eval expected="10000" xpath="//flow/block[3]/block[1]/@end-indent"/> + <eval expected="340000" xpath="//flow/block[2]/block[1]/@ipda"/> + <eval expected="340000" xpath="//flow/block[2]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpda"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpd"/> + <eval expected="10000" xpath="//flow/block[2]/block[1]/@start-indent"/> + <eval expected="10000" xpath="//flow/block[2]/block[1]/@end-indent"/> - <eval expected="340000" xpath="//flow/block[3]/block[1]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[1]/block[1]/@bpd"/> - <eval expected="40000" xpath="//flow/block[3]/block[1]/block[1]/block[1]/@ipda"/> - <eval expected="40000" xpath="//flow/block[3]/block[1]/block[1]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[1]/block[1]/block[1]/@bpda"/> - <eval expected="14400" xpath="//flow/block[3]/block[1]/block[1]/block[1]/@bpda"/> - <eval expected="10000" xpath="//flow/block[3]/block[1]/block[1]/block[1]/@start-indent"/> - <eval expected="310000" xpath="//flow/block[3]/block[1]/block[1]/block[1]/@end-indent"/> - <eval expected="10000" xpath="//flow/block[3]/block[1]/block[1]/block[1]/@space-start"/> - <eval expected="310000" xpath="//flow/block[3]/block[1]/block[1]/block[1]/@space-end"/> + <eval expected="340000" xpath="//flow/block[2]/block[1]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/@bpd"/> + <eval expected="40000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@ipda"/> + <eval expected="40000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@bpda"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@bpda"/> + <eval expected="10000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@start-indent"/> + <eval expected="310000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@end-indent"/> + <eval expected="10000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@space-start"/> + <eval expected="310000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@space-end"/> - <eval expected="340000" xpath="//flow/block[3]/block[1]/block[2]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[1]/block[2]/@bpd"/> - <eval expected="290000" xpath="//flow/block[3]/block[1]/block[2]/block[1]/@ipda"/> - <eval expected="280000" xpath="//flow/block[3]/block[1]/block[2]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[1]/block[2]/block[1]/@bpda"/> - <eval expected="14400" xpath="//flow/block[3]/block[1]/block[2]/block[1]/@bpda"/> - <eval expected="65000" xpath="//flow/block[3]/block[1]/block[2]/block[1]/@start-indent"/> - <eval expected="15000" xpath="//flow/block[3]/block[1]/block[2]/block[1]/@end-indent"/> - <eval expected="60000" xpath="//flow/block[3]/block[1]/block[2]/block[1]/@space-start"/> - <eval expected="10000" xpath="//flow/block[3]/block[1]/block[2]/block[1]/@space-end"/> + <eval expected="340000" xpath="//flow/block[2]/block[1]/block[2]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/block[2]/@bpd"/> + <eval expected="290000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@ipda"/> + <eval expected="280000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@bpda"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@bpda"/> + <eval expected="65000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@start-indent"/> + <eval expected="15000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@end-indent"/> + <eval expected="60000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@space-start"/> + <eval expected="10000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@space-end"/> <!-- spacer block for space-before on second list-item --> - <eval expected="5000" xpath="//flow/block[3]/block[2]/@bpd"/> + <eval expected="5000" xpath="//flow/block[2]/block[2]/@space-before"/> <!-- second list-item --> - <eval expected="340000" xpath="//flow/block[3]/block[3]/@ipda"/> - <eval expected="340000" xpath="//flow/block[3]/block[3]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/@bpda"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/@bpd"/> - <eval expected="10000" xpath="//flow/block[3]/block[3]/@start-indent"/> - <eval expected="10000" xpath="//flow/block[3]/block[3]/@end-indent"/> + <eval expected="340000" xpath="//flow/block[2]/block[2]/@ipda"/> + <eval expected="340000" xpath="//flow/block[2]/block[2]/@ipd"/> + <eval expected="29400" xpath="//flow/block[2]/block[2]/@bpda"/> + <eval expected="14400" xpath="//flow/block[2]/block[2]/@bpd"/> + <eval expected="10000" xpath="//flow/block[2]/block[2]/@start-indent"/> + <eval expected="10000" xpath="//flow/block[2]/block[2]/@end-indent"/> - <eval expected="340000" xpath="//flow/block[3]/block[3]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/block[1]/@bpd"/> - <eval expected="40000" xpath="//flow/block[3]/block[3]/block[1]/block[1]/@ipda"/> - <eval expected="40000" xpath="//flow/block[3]/block[3]/block[1]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/block[1]/block[1]/@bpda"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/block[1]/block[1]/@bpda"/> - <eval expected="10000" xpath="//flow/block[3]/block[3]/block[1]/block[1]/@start-indent"/> - <eval expected="310000" xpath="//flow/block[3]/block[3]/block[1]/block[1]/@end-indent"/> - <eval expected="10000" xpath="//flow/block[3]/block[3]/block[1]/block[1]/@space-start"/> - <eval expected="310000" xpath="//flow/block[3]/block[3]/block[1]/block[1]/@space-end"/> + <eval expected="340000" xpath="//flow/block[2]/block[2]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[2]/block[1]/@bpd"/> + <eval expected="40000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@ipda"/> + <eval expected="40000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@bpda"/> + <eval expected="14400" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@bpda"/> + <eval expected="10000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@start-indent"/> + <eval expected="310000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@end-indent"/> + <eval expected="10000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@space-start"/> + <eval expected="310000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@space-end"/> - <eval expected="340000" xpath="//flow/block[3]/block[3]/block[2]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/block[2]/@bpd"/> - <eval expected="295000" xpath="//flow/block[3]/block[3]/block[2]/block[1]/@ipda"/> - <eval expected="285000" xpath="//flow/block[3]/block[3]/block[2]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/block[2]/block[1]/@bpda"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/block[2]/block[1]/@bpda"/> - <eval expected="60000" xpath="//flow/block[3]/block[3]/block[2]/block[1]/@start-indent"/> - <eval expected="15000" xpath="//flow/block[3]/block[3]/block[2]/block[1]/@end-indent"/> - <eval expected="55000" xpath="//flow/block[3]/block[3]/block[2]/block[1]/@space-start"/> - <eval expected="10000" xpath="//flow/block[3]/block[3]/block[2]/block[1]/@space-end"/> + <eval expected="340000" xpath="//flow/block[2]/block[2]/block[2]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[2]/block[2]/@bpd"/> + <eval expected="295000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@ipda"/> + <eval expected="285000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@bpda"/> + <eval expected="14400" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@bpda"/> + <eval expected="60000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@start-indent"/> + <eval expected="15000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@end-indent"/> + <eval expected="55000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@space-start"/> + <eval expected="10000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@space-end"/> <!-- spacer block for space-after on second list-item --> - <eval expected="10000" xpath="//flow/block[3]/block[4]/@bpd"/> + <eval expected="10000" xpath="//flow/block[2]/block[2]/@space-after"/> <!-- third list-item --> - <eval expected="340000" xpath="//flow/block[3]/block[5]/@ipda"/> - <eval expected="320000" xpath="//flow/block[3]/block[5]/@ipd"/> - <eval expected="34400" xpath="//flow/block[3]/block[5]/@bpda"/> - <eval expected="14400" xpath="//flow/block[3]/block[5]/@bpd"/> - <eval expected="10000 10000 10000 10000" xpath="//flow/block[3]/block[5]/@bap"/> - <eval expected="5000" xpath="//flow/block[3]/block[5]/@padding-before"/> - <eval expected="5000" xpath="//flow/block[3]/block[5]/@padding-after"/> - <eval expected="5000" xpath="//flow/block[3]/block[5]/@padding-start"/> - <eval expected="5000" xpath="//flow/block[3]/block[5]/@padding-end"/> - <eval expected="20000" xpath="//flow/block[3]/block[5]/@start-indent"/> - <eval expected="20000" xpath="//flow/block[3]/block[5]/@end-indent"/> + <eval expected="340000" xpath="//flow/block[2]/block[3]/@ipda"/> + <eval expected="320000" xpath="//flow/block[2]/block[3]/@ipd"/> + <eval expected="34400" xpath="//flow/block[2]/block[3]/@bpda"/> + <eval expected="14400" xpath="//flow/block[2]/block[3]/@bpd"/> + <eval expected="10000 10000 10000 10000" xpath="//flow/block[2]/block[3]/@bap"/> + <eval expected="5000" xpath="//flow/block[2]/block[3]/@padding-before"/> + <eval expected="5000" xpath="//flow/block[2]/block[3]/@padding-after"/> + <eval expected="5000" xpath="//flow/block[2]/block[3]/@padding-start"/> + <eval expected="5000" xpath="//flow/block[2]/block[3]/@padding-end"/> + <eval expected="20000" xpath="//flow/block[2]/block[3]/@start-indent"/> + <eval expected="20000" xpath="//flow/block[2]/block[3]/@end-indent"/> - <eval expected="320000" xpath="//flow/block[3]/block[5]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[5]/block[1]/@bpd"/> - <eval expected="40000" xpath="//flow/block[3]/block[5]/block[1]/block[1]/@ipda"/> - <eval expected="40000" xpath="//flow/block[3]/block[5]/block[1]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[5]/block[1]/block[1]/@bpda"/> - <eval expected="14400" xpath="//flow/block[3]/block[5]/block[1]/block[1]/@bpda"/> - <eval expected="20000" xpath="//flow/block[3]/block[5]/block[1]/block[1]/@start-indent"/> - <eval expected="300000" xpath="//flow/block[3]/block[5]/block[1]/block[1]/@end-indent"/> - <eval expected="20000" xpath="//flow/block[3]/block[5]/block[1]/block[1]/@space-start"/> - <eval expected="300000" xpath="//flow/block[3]/block[5]/block[1]/block[1]/@space-end"/> + <eval expected="320000" xpath="//flow/block[2]/block[3]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[3]/block[1]/@bpd"/> + <eval expected="40000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@ipda"/> + <eval expected="40000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@bpda"/> + <eval expected="14400" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@bpda"/> + <eval expected="20000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@start-indent"/> + <eval expected="300000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@end-indent"/> + <eval expected="20000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@space-start"/> + <eval expected="300000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@space-end"/> - <eval expected="320000" xpath="//flow/block[3]/block[5]/block[2]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[5]/block[2]/@bpd"/> - <eval expected="280000" xpath="//flow/block[3]/block[5]/block[2]/block[1]/@ipda"/> - <eval expected="270000" xpath="//flow/block[3]/block[5]/block[2]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[5]/block[2]/block[1]/@bpda"/> - <eval expected="14400" xpath="//flow/block[3]/block[5]/block[2]/block[1]/@bpda"/> - <eval expected="70000" xpath="//flow/block[3]/block[5]/block[2]/block[1]/@start-indent"/> - <eval expected="20000" xpath="//flow/block[3]/block[5]/block[2]/block[1]/@end-indent"/> - <eval expected="65000" xpath="//flow/block[3]/block[5]/block[2]/block[1]/@space-start"/> - <eval expected="15000" xpath="//flow/block[3]/block[5]/block[2]/block[1]/@space-end"/> + <eval expected="320000" xpath="//flow/block[2]/block[3]/block[2]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[3]/block[2]/@bpd"/> + <eval expected="280000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@ipda"/> + <eval expected="270000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@bpda"/> + <eval expected="14400" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@bpda"/> + <eval expected="70000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@start-indent"/> + <eval expected="20000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@end-indent"/> + <eval expected="65000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@space-start"/> + <eval expected="15000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@space-end"/> <!-- spacer block for space-after on list-block --> - <eval expected="10000" xpath="//flow/block[4]/@bpd"/> + <eval expected="10000" xpath="//flow/block[2]/@space-after"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/list-block_space-before_space-after_1.xml b/test/layoutengine/testcases/list-block_space-before_space-after_1.xml new file mode 100644 index 000000000..82af9d20d --- /dev/null +++ b/test/layoutengine/testcases/list-block_space-before_space-after_1.xml @@ -0,0 +1,221 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks spaces on tables. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="1.7in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" id="retain"> + <fo:flow flow-name="xsl-region-body"> + <fo:list-block provisional-distance-between-starts="8pt" provisional-label-separation="5pt" + space-before="20pt" space-before.conditionality="retain" + space-after="10pt" space-after.conditionality="retain"> + <fo:list-item space-before="1em"> + <fo:list-item-label end-indent="label-end()"> + <fo:block>•</fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> + <fo:block text-align="justify"> +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + </fo:block> + </fo:list-item-body> + </fo:list-item> + <fo:list-item> + <fo:list-item-label end-indent="label-end()"> + <fo:block>•</fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> + <fo:block>here is text in the list item body</fo:block> + </fo:list-item-body> + </fo:list-item> + </fo:list-block> + <fo:block space-before.optimum="10pt" space-before.conditionality="retain" space-after.optimum="20pt" space-after.conditionality="retain"> +Two blocks, testing conditionality="retain". + </fo:block> + </fo:flow> + </fo:page-sequence> + <fo:page-sequence master-reference="normal" id="discard"> + <fo:flow flow-name="xsl-region-body"> + <fo:list-block provisional-distance-between-starts="8pt" provisional-label-separation="5pt" + space-before="20pt" space-before.conditionality="discard" + space-after="10pt" space-after.conditionality="discard"> + <fo:list-item space-before="1em"> + <fo:list-item-label end-indent="label-end()"> + <fo:block>•</fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> + <fo:block text-align="justify"> +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + </fo:block> + </fo:list-item-body> + </fo:list-item> + <fo:list-item> + <fo:list-item-label end-indent="label-end()"> + <fo:block>•</fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> + <fo:block>here is text in the list item body</fo:block> + </fo:list-item-body> + </fo:list-item> + </fo:list-block> + <fo:block space-before.optimum="10pt" space-before.conditionality="discard" space-after.optimum="20pt" space-after.conditionality="discard"> +Two blocks, testing conditionality="discard". + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker" id="retain"> + <box w="0"/> <!-- Helper box bearing the SpaceHandlingPosition and making sure the glue gets processed --> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="28800"/> + + <penalty w="0" p="INF"/> + <glue w="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="14400"/> + + <penalty w="0" p="INF"/> + <glue w="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="14400"/> + + <!-- skip three more lines --> + <skip>8</skip> + <skip>8</skip> + <skip>8</skip> + + <penalty w="0" p="INF"/> + <glue w="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="28800"/> <!-- end of first list item --> + + <penalty w="0" p="INF"/> + <glue w="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="14400"/> <!-- second list-item --> + + <penalty w="0" p="INF" aux="true"/> + <glue w="10000"/> + <penalty w="0" p="0"/> + <glue w="-10000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="10000"/> + + <box w="14400"/> <!-- second block --> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="0"/> <!-- This is used to make sure the preceding glue is not cut off --> + + <skip>3</skip> + </element-list> + <element-list category="breaker" id="discard"> + <box w="0"/> <!-- Helper box used to notify the LM for the addAreas stage about the discarded spaces --> + <box w="28800"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="28800"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <glue w="10000"/> + + <box w="14400"/> <!-- second block --> + + <box w="0"/> <!-- SpaceHandlingPosition-bearing helper box --> + + <skip>3</skip> + </element-list> + + <eval expected="4" xpath="count(//pageViewport)"/> + + <!-- 1: retain --> + <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="10000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after"/> + <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <!-- the following space is eliminated/collapsed through space resolution --> + <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/> + <eval expected="10000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-before"/> + <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-after"/> + + <!-- 2: discard --> + <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/> + <eval expected="10000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-before"/> + <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-after))"/> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/list-block_space-before_space-after_2.xml b/test/layoutengine/testcases/list-block_space-before_space-after_2.xml new file mode 100644 index 000000000..293faebd8 --- /dev/null +++ b/test/layoutengine/testcases/list-block_space-before_space-after_2.xml @@ -0,0 +1,114 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks lists. Checks space-before and space-after on list-block. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in" + margin="20pt"> + <fo:region-body background-color="yellow"/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:flow flow-name="xsl-region-body"> + <fo:block>test</fo:block> + <fo:list-block provisional-distance-between-starts="50pt" provisional-label-separation="5pt"> + <fo:list-item space-before="1em"> + <fo:list-item-label end-indent="label-end()"> + <fo:block>•</fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> + <fo:block>here is text in the list item body</fo:block> + </fo:list-item-body> + </fo:list-item> + <fo:list-item space-before="1em"> + <fo:list-item-label end-indent="label-end()"> + <fo:block>•</fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> + <fo:block>here is text in the list item body</fo:block> + </fo:list-item-body> + </fo:list-item> + <fo:list-item space-before="1em" space-after="1em"> + <fo:list-item-label end-indent="label-end()"> + <fo:block>•</fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> + <fo:block>here is text in the list item body</fo:block> + </fo:list-item-body> + </fo:list-item> + <fo:list-item space-after="1em"> + <fo:list-item-label end-indent="label-end()"> + <fo:block>•</fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> + <fo:block>here is text in the list item body</fo:block> + </fo:list-item-body> + </fo:list-item> + <fo:list-item> + <fo:list-item-label end-indent="label-end()"> + <fo:block>•</fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> + <fo:block>here is text in the list item body</fo:block> + </fo:list-item-body> + </fo:list-item> + </fo:list-block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <eval expected="2" xpath="count(//pageViewport)"/> + <element-list category="breaker"> + <box w="14400"/> + + <penalty w="0" p="0"/> + + <glue w="12000"/> + <box w="14400"/> + + <penalty w="0" p="0"/> + + <glue w="12000"/> + <box w="14400"/> + + <penalty w="0" p="0"/> + + <glue w="12000"/> + <box w="14400"/> + + <penalty w="0" p="0"/> + + <glue w="12000"/> + <box w="14400"/> + + <penalty w="0" p="0"/> + + <glue w="12000"/> + <box w="14400"/> + + <skip>3</skip> + </element-list> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/list-item_space-before_space-after_1.xml b/test/layoutengine/testcases/list-item_space-before_space-after_1.xml index 31aea6ecc..6e55cf008 100644 --- a/test/layoutengine/testcases/list-item_space-before_space-after_1.xml +++ b/test/layoutengine/testcases/list-item_space-before_space-after_1.xml @@ -82,19 +82,32 @@ <eval expected="2" xpath="count(//pageViewport)"/> <element-list category="breaker"> <box w="14400"/> + <penalty w="0" p="0"/> + <glue w="12000"/> <box w="14400"/> + <penalty w="0" p="0"/> + <glue w="12000"/> <box w="14400"/> + <penalty w="0" p="0"/> + <glue w="12000"/> <box w="14400"/> + + <penalty w="0" p="0"/> + <glue w="12000"/> <box w="14400"/> + + <penalty w="0" p="0"/> + <glue w="12000"/> <box w="14400"/> + <skip>3</skip> </element-list> </checks> diff --git a/test/layoutengine/testcases/list-item_space-before_space-after_2.xml b/test/layoutengine/testcases/list-item_space-before_space-after_2.xml index 855046352..15e501324 100644 --- a/test/layoutengine/testcases/list-item_space-before_space-after_2.xml +++ b/test/layoutengine/testcases/list-item_space-before_space-after_2.xml @@ -89,21 +89,37 @@ instead of optimum and the addAreas stage doesn't create smaller space-before/after spacers. --> + <!-- We don't check the exact effective space-before value, but simply make sure it's smaller than 12pt=1em in this test case --> + <true xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@space-before < 12000"/> + <element-list category="breaker"> <box w="14400"/> + <penalty w="0" p="0"/> - <glue w="12000"/> <!-- TODO Check shrink/stretch --> + + <glue w="12000" y="0" z="12000"/> <box w="14400"/> + <penalty w="0" p="0"/> - <glue w="12000"/> + + <glue w="12000" y="0" z="12000"/> <box w="14400"/> + <penalty w="0" p="0"/> - <glue w="12000"/> + + <glue w="12000" y="0" z="12000"/> <box w="14400"/> - <glue w="12000"/> + + <penalty w="0" p="0"/> + + <glue w="12000" y="0" z="12000"/> <box w="14400"/> - <glue w="12000"/> + + <penalty w="0" p="0"/> + + <glue w="12000" y="0" z="12000"/> <box w="14400"/> + <skip>3</skip> </element-list> </checks> diff --git a/test/layoutengine/testcases/list-item_space-before_space-after_3.xml b/test/layoutengine/testcases/list-item_space-before_space-after_3.xml new file mode 100644 index 000000000..6b8a81a65 --- /dev/null +++ b/test/layoutengine/testcases/list-item_space-before_space-after_3.xml @@ -0,0 +1,73 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks lists. Checks spaces inside list-item content. + </p> + <p> + Some additional code is notify the LMs about the effective spaces, otherwise discardable spaces don't get discarded. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in" + margin="20pt"> + <fo:region-body background-color="yellow"/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:flow flow-name="xsl-region-body"> + <fo:list-block provisional-distance-between-starts="50pt" provisional-label-separation="5pt"> + <fo:list-item space-before="1em"> + <fo:list-item-label end-indent="label-end()"> + <fo:block space-before="1em">•</fo:block> + </fo:list-item-label> + <fo:list-item-body start-indent="body-start()"> + <fo:block space-before="1em">here is text in the list item body</fo:block> + </fo:list-item-body> + </fo:list-item> + </fo:list-block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="list-item-label"> + <box w="0"/> <!-- Starting SpaceHandlingPosition --> + <box w="14400"/> + </element-list> + <element-list category="list-item-body"> + <box w="0"/> <!-- Starting SpaceHandlingPosition --> + <box w="14400"/> + </element-list> + <element-list category="breaker"> + <box w="0"/> <!-- Starting SpaceHandlingPosition --> + <box w="14400"/> + + <skip>3</skip> + </element-list> + <true xpath="not(boolean(//flow/block[1]/@space-before))"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/@space-before))"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/@space-before))"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/block[1]/@space-before))"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/block[2]/@space-before))"/> + <true xpath="not(boolean(//flow/block[1]/block[1]/block[2]/block[1]/@space-before))"/> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/page-breaking_2.xml b/test/layoutengine/testcases/page-breaking_2.xml index 3fa18cd28..cc1797f84 100644 --- a/test/layoutengine/testcases/page-breaking_2.xml +++ b/test/layoutengine/testcases/page-breaking_2.xml @@ -31,7 +31,10 @@ </fo:layout-master-set> <fo:page-sequence master-reference="simple"> <fo:flow flow-name="xsl-region-body"> - <fo:block line-height="10pt" space-before.optimum="5cm" + <fo:block-container height="5cm"> + <fo:block/> + </fo:block-container> + <fo:block line-height="10pt" white-space-collapse="false" white-space-treatment="preserve" linefeed-treatment="preserve" wrap-option="no-wrap"> <![CDATA[<!-- list level 1 --> <fo:list-block provisional-distance-between-starts="0.4cm" diff --git a/test/layoutengine/testcases/page-number-citation_border_padding.xml b/test/layoutengine/testcases/page-number-citation_border_padding.xml index 7512c1e94..ed65a507c 100755 --- a/test/layoutengine/testcases/page-number-citation_border_padding.xml +++ b/test/layoutengine/testcases/page-number-citation_border_padding.xml @@ -47,52 +47,52 @@ </fo:root> </fo> <checks> + <eval expected="7180" xpath="//flow/block[1]/lineArea/text[2]/@baseline"/> + <eval expected="0" xpath="//flow/block[1]/lineArea/text[2]/@offset"/> + <eval expected="5560" xpath="//flow/block[1]/lineArea/text[2]/@ipd"/> + <eval expected="7560" xpath="//flow/block[1]/lineArea/text[2]/@ipda"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-start"/> + <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@baseline"/> <eval expected="0" xpath="//flow/block[2]/lineArea/text[2]/@offset"/> <eval expected="5560" xpath="//flow/block[2]/lineArea/text[2]/@ipd"/> - <eval expected="7560" xpath="//flow/block[2]/lineArea/text[2]/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-start"/> - - <eval expected="7180" xpath="//flow/block[5]/lineArea/text[2]/@baseline"/> - <eval expected="0" xpath="//flow/block[5]/lineArea/text[2]/@offset"/> - <eval expected="5560" xpath="//flow/block[5]/lineArea/text[2]/@ipd"/> - <eval expected="25560" xpath="//flow/block[5]/lineArea/text[2]/@ipda"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-start"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-after"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-before"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-end"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-start"/> + <eval expected="25560" xpath="//flow/block[2]/lineArea/text[2]/@ipda"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-start"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-after"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-before"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-end"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-start"/> - <eval expected="7180" xpath="//flow/block[8]/lineArea/text[2]/@baseline"/> - <eval expected="0" xpath="//flow/block[8]/lineArea/text[2]/@offset"/> - <eval expected="5560" xpath="//flow/block[8]/lineArea/text[2]/@ipd"/> - <eval expected="17560" xpath="//flow/block[8]/lineArea/text[2]/@ipda"/> - <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[8]/lineArea/text[2]/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea/text[2]/@border-before"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[8]/lineArea/text[2]/@border-end"/> - <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[8]/lineArea/text[2]/@border-start"/> - <eval expected="3000" xpath="//flow/block[8]/lineArea/text[2]/@padding-after"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea/text[2]/@padding-before"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea/text[2]/@padding-end"/> - <eval expected="4000" xpath="//flow/block[8]/lineArea/text[2]/@padding-start"/> + <eval expected="7180" xpath="//flow/block[3]/lineArea/text[2]/@baseline"/> + <eval expected="0" xpath="//flow/block[3]/lineArea/text[2]/@offset"/> + <eval expected="5560" xpath="//flow/block[3]/lineArea/text[2]/@ipd"/> + <eval expected="17560" xpath="//flow/block[3]/lineArea/text[2]/@ipda"/> + <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[3]/lineArea/text[2]/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/text[2]/@border-before"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[3]/lineArea/text[2]/@border-end"/> + <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[3]/lineArea/text[2]/@border-start"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea/text[2]/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea/text[2]/@padding-before"/> + <eval expected="2000" xpath="//flow/block[3]/lineArea/text[2]/@padding-end"/> + <eval expected="4000" xpath="//flow/block[3]/lineArea/text[2]/@padding-start"/> - <eval expected="5744" xpath="//flow/block[11]/lineArea/text[2]/@baseline"/> - <eval expected="8616" xpath="//flow/block[11]/lineArea/text[2]/@offset"/> - <eval expected="4448" xpath="//flow/block[11]/lineArea/text[2]/@ipd"/> - <eval expected="24448" xpath="//flow/block[11]/lineArea/text[2]/@ipda"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-start"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-after"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-before"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-end"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-start"/> + <eval expected="5744" xpath="//flow/block[4]/lineArea/text[2]/@baseline"/> + <eval expected="8616" xpath="//flow/block[4]/lineArea/text[2]/@offset"/> + <eval expected="4448" xpath="//flow/block[4]/lineArea/text[2]/@ipd"/> + <eval expected="24448" xpath="//flow/block[4]/lineArea/text[2]/@ipda"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-start"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-after"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-before"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-end"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-start"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/page-number-citation_vertical-align.xml b/test/layoutengine/testcases/page-number-citation_vertical-align.xml index be9bbb707..b8f5315a1 100755 --- a/test/layoutengine/testcases/page-number-citation_vertical-align.xml +++ b/test/layoutengine/testcases/page-number-citation_vertical-align.xml @@ -50,10 +50,10 @@ </fo:root> </fo> <checks> + <eval expected="7180" xpath="//flow/block[1]/lineArea/text[2]/@offset"/> <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@offset"/> - <eval expected="7180" xpath="//flow/block[5]/lineArea/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea/text[2]/@offset"/> - <eval expected="4565" xpath="//flow/block[11]/lineArea/text[2]/@offset"/> - <eval expected="9250" xpath="//flow/block[14]/lineArea/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea/text[2]/@offset"/> + <eval expected="4565" xpath="//flow/block[4]/lineArea/text[2]/@offset"/> + <eval expected="9250" xpath="//flow/block[5]/lineArea/text[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/page-number_border_padding.xml b/test/layoutengine/testcases/page-number_border_padding.xml index c099d1c1e..cffa2eda1 100755 --- a/test/layoutengine/testcases/page-number_border_padding.xml +++ b/test/layoutengine/testcases/page-number_border_padding.xml @@ -47,52 +47,52 @@ </fo:root> </fo> <checks> + <eval expected="7180" xpath="//flow/block[1]/lineArea/text[2]/@baseline"/> + <eval expected="0" xpath="//flow/block[1]/lineArea/text[2]/@offset"/> + <eval expected="5560" xpath="//flow/block[1]/lineArea/text[2]/@ipd"/> + <eval expected="7560" xpath="//flow/block[1]/lineArea/text[2]/@ipda"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-before"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-end"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-start"/> + <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@baseline"/> <eval expected="0" xpath="//flow/block[2]/lineArea/text[2]/@offset"/> <eval expected="5560" xpath="//flow/block[2]/lineArea/text[2]/@ipd"/> - <eval expected="7560" xpath="//flow/block[2]/lineArea/text[2]/@ipda"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-before"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-end"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-start"/> - - <eval expected="7180" xpath="//flow/block[5]/lineArea/text[2]/@baseline"/> - <eval expected="0" xpath="//flow/block[5]/lineArea/text[2]/@offset"/> - <eval expected="5560" xpath="//flow/block[5]/lineArea/text[2]/@ipd"/> - <eval expected="25560" xpath="//flow/block[5]/lineArea/text[2]/@ipda"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-start"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-after"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-before"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-end"/> - <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-start"/> + <eval expected="25560" xpath="//flow/block[2]/lineArea/text[2]/@ipda"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-start"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-after"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-before"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-end"/> + <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-start"/> - <eval expected="7180" xpath="//flow/block[8]/lineArea/text[2]/@baseline"/> - <eval expected="0" xpath="//flow/block[8]/lineArea/text[2]/@offset"/> - <eval expected="5560" xpath="//flow/block[8]/lineArea/text[2]/@ipd"/> - <eval expected="17560" xpath="//flow/block[8]/lineArea/text[2]/@ipda"/> - <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[8]/lineArea/text[2]/@border-after"/> - <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea/text[2]/@border-before"/> - <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[8]/lineArea/text[2]/@border-end"/> - <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[8]/lineArea/text[2]/@border-start"/> - <eval expected="3000" xpath="//flow/block[8]/lineArea/text[2]/@padding-after"/> - <eval expected="1000" xpath="//flow/block[8]/lineArea/text[2]/@padding-before"/> - <eval expected="2000" xpath="//flow/block[8]/lineArea/text[2]/@padding-end"/> - <eval expected="4000" xpath="//flow/block[8]/lineArea/text[2]/@padding-start"/> + <eval expected="7180" xpath="//flow/block[3]/lineArea/text[2]/@baseline"/> + <eval expected="0" xpath="//flow/block[3]/lineArea/text[2]/@offset"/> + <eval expected="5560" xpath="//flow/block[3]/lineArea/text[2]/@ipd"/> + <eval expected="17560" xpath="//flow/block[3]/lineArea/text[2]/@ipda"/> + <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[3]/lineArea/text[2]/@border-after"/> + <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/text[2]/@border-before"/> + <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[3]/lineArea/text[2]/@border-end"/> + <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[3]/lineArea/text[2]/@border-start"/> + <eval expected="3000" xpath="//flow/block[3]/lineArea/text[2]/@padding-after"/> + <eval expected="1000" xpath="//flow/block[3]/lineArea/text[2]/@padding-before"/> + <eval expected="2000" xpath="//flow/block[3]/lineArea/text[2]/@padding-end"/> + <eval expected="4000" xpath="//flow/block[3]/lineArea/text[2]/@padding-start"/> - <eval expected="5744" xpath="//flow/block[11]/lineArea/text[2]/@baseline"/> - <eval expected="8616" xpath="//flow/block[11]/lineArea/text[2]/@offset"/> - <eval expected="4448" xpath="//flow/block[11]/lineArea/text[2]/@ipd"/> - <eval expected="24448" xpath="//flow/block[11]/lineArea/text[2]/@ipda"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-after"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-before"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-end"/> - <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-start"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-after"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-before"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-end"/> - <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-start"/> + <eval expected="5744" xpath="//flow/block[4]/lineArea/text[2]/@baseline"/> + <eval expected="8616" xpath="//flow/block[4]/lineArea/text[2]/@offset"/> + <eval expected="4448" xpath="//flow/block[4]/lineArea/text[2]/@ipd"/> + <eval expected="24448" xpath="//flow/block[4]/lineArea/text[2]/@ipda"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-after"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-before"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-end"/> + <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-start"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-after"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-before"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-end"/> + <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-start"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/page-number_vertical-align.xml b/test/layoutengine/testcases/page-number_vertical-align.xml index f436bbd30..a4605027a 100755 --- a/test/layoutengine/testcases/page-number_vertical-align.xml +++ b/test/layoutengine/testcases/page-number_vertical-align.xml @@ -50,10 +50,10 @@ </fo:root> </fo> <checks> + <eval expected="7180" xpath="//flow/block[1]/lineArea/text[2]/@offset"/> <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@offset"/> - <eval expected="7180" xpath="//flow/block[5]/lineArea/text[2]/@offset"/> - <eval expected="0" xpath="//flow/block[8]/lineArea/text[2]/@offset"/> - <eval expected="4565" xpath="//flow/block[11]/lineArea/text[2]/@offset"/> - <eval expected="9250" xpath="//flow/block[14]/lineArea/text[2]/@offset"/> + <eval expected="0" xpath="//flow/block[3]/lineArea/text[2]/@offset"/> + <eval expected="4565" xpath="//flow/block[4]/lineArea/text[2]/@offset"/> + <eval expected="9250" xpath="//flow/block[5]/lineArea/text[2]/@offset"/> </checks> </testcase> diff --git a/test/layoutengine/testcases/region_side_space-resolution.xml b/test/layoutengine/testcases/region_side_space-resolution.xml new file mode 100644 index 000000000..912fa6e16 --- /dev/null +++ b/test/layoutengine/testcases/region_side_space-resolution.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks if space resolution works in side regions. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in"> + <fo:region-body margin-top="50pt"/> + <fo:region-before extent="50pt" background-color="yellow"/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:static-content flow-name="xsl-region-before"> + <fo:block space-before="1em" space-after="1em">line 1</fo:block> + <fo:block space-before="1em" space-after="1em">line 2</fo:block> + </fo:static-content> + <fo:flow flow-name="xsl-region-body"> + <fo:block>region-body</fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="static-content" id="xsl-region-before"> + <box w="0"/> <!-- SpaceHandlingPosition --> + <box w="14400"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="12000"/> + + <box w="14400"/> + + <box w="0"/> <!-- SpaceHandlingPosition --> + <skip>3</skip> + </element-list> + + <true xpath="not(boolean(//regionBefore/block[1]/@space-before))"/> + <true xpath="not(boolean(//regionBefore/block[1]/@space-after))"/> + <eval expected="12000" xpath="//regionBefore/block[2]/@space-before"/> + <true xpath="not(boolean(//regionBefore/block[2]/@space-after))"/> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/table-cell_block_margin_percentage.xml b/test/layoutengine/testcases/table-cell_block_margin_percentage.xml index d791e965f..18a041c20 100644 --- a/test/layoutengine/testcases/table-cell_block_margin_percentage.xml +++ b/test/layoutengine/testcases/table-cell_block_margin_percentage.xml @@ -57,12 +57,14 @@ <true xpath="//flow/block[1]/block[1]/@is-reference-area"/> <eval expected="144000" xpath="//flow/block[1]/block[1]/@ipd"/> <eval expected="43200" xpath="//flow/block[1]/block[1]/@bpd"/> - <eval expected="115200" xpath="//flow/block[1]/block[1]/block[2]/@ipd"/> - <eval expected="14400" xpath="//flow/block[1]/block[1]/block[2]/@bpd"/> - <eval expected="14400" xpath="//flow/block[1]/block[1]/block[2]/@start-indent"/> - <eval expected="14400" xpath="//flow/block[1]/block[1]/block[2]/@space-start"/> - <eval expected="14400" xpath="//flow/block[1]/block[1]/block[2]/@end-indent"/> - <eval expected="14400" xpath="//flow/block[1]/block[1]/block[2]/@space-end"/> + <eval expected="115200" xpath="//flow/block[1]/block[1]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@bpd"/> + <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@space-before"/> + <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@space-after"/> + <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@start-indent"/> + <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@space-start"/> + <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@end-indent"/> + <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@space-end"/> <!-- cell 2 --> <true xpath="//flow/block[1]/block[2]/@is-reference-area"/> diff --git a/test/layoutengine/testcases/table-cell_border_padding_conditionality.xml b/test/layoutengine/testcases/table-cell_border_padding_conditionality.xml new file mode 100644 index 000000000..f3a189219 --- /dev/null +++ b/test/layoutengine/testcases/table-cell_border_padding_conditionality.xml @@ -0,0 +1,128 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks border and padding conditionality on table. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" id="retain"> + <fo:flow flow-name="xsl-region-body"> + <fo:table table-layout="fixed" width="100%" border-collapse="separate" border-spacing="5pt"> + <fo:table-column column-width="proportional-column-width(1)"/> + <fo:table-column column-width="proportional-column-width(9)"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell background-color="yellow" + padding-before="20pt" padding-before.conditionality="retain" + padding-after="20pt" padding-after.conditionality="retain" + border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="retain" + border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="retain"> + <fo:block>cell1</fo:block> + </fo:table-cell> + <fo:table-cell background-color="orange" + padding-before="20pt" padding-before.conditionality="retain" + padding-after="20pt" padding-after.conditionality="retain" + border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="retain" + border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="retain"> + <fo:block text-align="justify"> +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + </fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </fo:flow> + </fo:page-sequence> + <fo:page-sequence master-reference="normal" id="discard"> + <fo:flow flow-name="xsl-region-body"> + <fo:table table-layout="fixed" width="100%" border-collapse="separate" border-spacing="5pt"> + <fo:table-column column-width="proportional-column-width(1)"/> + <fo:table-column column-width="proportional-column-width(9)"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell background-color="yellow" + padding-before="20pt" padding-before.conditionality="discard" + padding-after="20pt" padding-after.conditionality="discard" + border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="discard" + border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="discard"> + <fo:block>cell1</fo:block> + </fo:table-cell> + <fo:table-cell background-color="orange" + padding-before="20pt" padding-before.conditionality="discard" + padding-after="20pt" padding-after.conditionality="discard" + border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="discard" + border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="discard"> + <fo:block text-align="justify"> +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + </fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <!-- retain case --> + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/> + <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-before"/> + + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/> + <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-after"/> + + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/> + <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-before"/> + + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/> + <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-after"/> + + <!-- discard case --> + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/> + <eval expected="20000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-before"/> + + <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after))"/> + <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-after))"/> + + <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-before))"/> + + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/> + <eval expected="20000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-after"/> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/table_border_padding_2.xml b/test/layoutengine/testcases/table_border_padding_2.xml new file mode 100644 index 000000000..cea526998 --- /dev/null +++ b/test/layoutengine/testcases/table_border_padding_2.xml @@ -0,0 +1,203 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks border and padding conditionality on table. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" id="retain"> + <fo:flow flow-name="xsl-region-body"> + <fo:table table-layout="fixed" width="100%" border-collapse="separate" border-spacing="5pt" + padding-before="20pt" padding-before.conditionality="retain" + padding-after="20pt" padding-after.conditionality="retain" + border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="retain" + border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="retain"> + <fo:table-column column-width="proportional-column-width(1)"/> + <fo:table-column column-width="proportional-column-width(9)"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell background-color="yellow"> + <fo:block>cell1</fo:block> + </fo:table-cell> + <fo:table-cell background-color="orange"> + <fo:block text-align="justify"> +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + </fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </fo:flow> + </fo:page-sequence> + <fo:page-sequence master-reference="normal" id="discard"> + <fo:flow flow-name="xsl-region-body"> + <fo:table table-layout="fixed" width="100%" border-collapse="separate" border-spacing="5pt" + padding-before="20pt" padding-before.conditionality="discard" + padding-after="20pt" padding-after.conditionality="discard" + border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="discard" + border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="discard"> + <fo:table-column column-width="proportional-column-width(1)"/> + <fo:table-column column-width="proportional-column-width(9)"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell background-color="yellow"> + <fo:block>cell1</fo:block> + </fo:table-cell> + <fo:table-cell background-color="orange"> + <fo:block text-align="justify"> +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + </fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker" id="retain"> + <box w="0"/> <!-- Helper box bearing the SpaceHandlingPosition and making sure the glue gets processed --> + <penalty w="0" p="INF"/> + <glue w="25000"/> + + <box w="0"/> + + <penalty w="0" p="INF"/> + <glue w="25000"/> + <penalty w="14400"/> <!-- p is not of interest here --> + <glue w="-50000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="25000"/> + + <box w="28800"/> + + <penalty w="0" p="INF"/> + <glue w="25000"/> + <penalty w="0" p="0"/> + <glue w="-50000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="25000"/> + + <box w="14400"/> + + <!-- skip three more lines --> + <skip>8</skip> + <skip>8</skip> + <skip>8</skip> + <skip>8</skip> + <skip>8</skip> + + <penalty w="0" p="INF"/> + <glue w="25000"/> + <penalty w="0" p="0"/> + <glue w="-50000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="25000"/> + + <box w="28800"/> <!-- end of table --> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="25000"/> + + <box w="0"/> <!-- This is used to make sure the preceding glue is not cut off --> + + <skip>3</skip> + </element-list> + <element-list category="breaker" id="discard"> + <box w="0"/> <!-- Helper box used to notify the LM for the addAreas stage about the discarded spaces --> + <penalty w="0" p="INF"/> + <glue w="25000"/> + <box w="0"/> + <penalty w="14400"/> <!-- p is not of interest here --> + <box w="28800"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="28800"/> + + <box w="0"/> <!-- SpaceHandlingPosition-bearing helper box --> + + <penalty w="0" p="INF"/> + <glue w="25000"/> + <box w="0"/> <!-- This is used to make sure the preceding glue is not cut off --> + + <skip>3</skip> + </element-list> + + <!-- retain case --> + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-before"/> + <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-before"/> + + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after"/> + <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-after"/> + + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-before"/> + <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-before"/> + + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after"/> + <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-after"/> + + <!-- discard case --> + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-before"/> + <eval expected="20000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-before"/> + + <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after))"/> + <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-after))"/> + + <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-before))"/> + + <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after"/> + <eval expected="20000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-after"/> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/table_margin_space-before_space-after.xml b/test/layoutengine/testcases/table_margin_space-before_space-after.xml index c1b37fafb..ddf51a9f2 100644 --- a/test/layoutengine/testcases/table_margin_space-before_space-after.xml +++ b/test/layoutengine/testcases/table_margin_space-before_space-after.xml @@ -16,99 +16,99 @@ --> <!-- $Id$ --> <testcase> - <info> - <p> + <info> + <p> This test checks basic tables. Tests table spaces and margins. </p> - </info> - <fo> - <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> - <fo:layout-master-set> - <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in"> - <fo:region-body/> - </fo:simple-page-master> - </fo:layout-master-set> - <fo:page-sequence master-reference="normal" white-space-collapse="true"> - <fo:flow flow-name="xsl-region-body"> - <fo:block background-color="orange">before table</fo:block> - <fo:table table-layout="fixed" space-before="5pt" space-after="10pt" margin-left="5pt" margin-right="10pt" width="4in + 15pt" background-color="lightgray"> - <fo:table-column column-width="2in"/> - <fo:table-column column-width="2in"/> - <fo:table-body start-indent="0pt" end-indent="0pt"> - <fo:table-row> - <fo:table-cell> - <fo:block>cell1</fo:block> - </fo:table-cell> - <fo:table-cell background-color="yellow"> - <fo:block>cell2</fo:block> - </fo:table-cell> - </fo:table-row> - <fo:table-row> - <fo:table-cell background-color="orange"> - <fo:block text-align="end">cell3</fo:block> - </fo:table-cell> - <fo:table-cell> - <fo:block>cell4</fo:block> - </fo:table-cell> - </fo:table-row> - </fo:table-body> - </fo:table> - <fo:block background-color="orange">after table</fo:block> - <fo:block-container width="4in + 15pt"> - <fo:block space-before="5pt" space-after="10pt" margin-left="5pt" margin-right="10pt" background-color="lightgray"> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:flow flow-name="xsl-region-body"> + <fo:block background-color="orange">before table</fo:block> + <fo:table table-layout="fixed" space-before="5pt" space-after="10pt" margin-left="5pt" margin-right="10pt" width="4in + 15pt" background-color="lightgray"> + <fo:table-column column-width="2in"/> + <fo:table-column column-width="2in"/> + <fo:table-body start-indent="0pt" end-indent="0pt"> + <fo:table-row> + <fo:table-cell> + <fo:block>cell1</fo:block> + </fo:table-cell> + <fo:table-cell background-color="yellow"> + <fo:block>cell2</fo:block> + </fo:table-cell> + </fo:table-row> + <fo:table-row> + <fo:table-cell background-color="orange"> + <fo:block text-align="end">cell3</fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block>cell4</fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <fo:block background-color="orange">after table</fo:block> + <fo:block-container width="4in + 15pt"> + <fo:block space-before="5pt" space-after="10pt" margin-left="5pt" margin-right="10pt" background-color="lightgray"> reference block </fo:block> - </fo:block-container> - </fo:flow> - </fo:page-sequence> - </fo:root> - </fo> - <checks> - <!-- spaces --> - <eval expected="5000" xpath="//flow/block[2]/@bpd"/> - <eval expected="10000" xpath="//flow/block[4]/@bpd"/> - <!-- table dimensions --> - <eval expected="303000" xpath="//flow/block[3]/@ipda"/> - <eval expected="303000" xpath="//flow/block[3]/@ipd"/> - <eval expected="28800" xpath="//flow/block[3]/@bpda"/> - <eval expected="28800" xpath="//flow/block[3]/@bpd"/> - <!-- cell 1 --> - <true xpath="//flow/block[3]/block[1]/@is-reference-area"/> - <eval expected="5000" xpath="//flow/block[3]/block[1]/@left-offset"/> - <true xpath="not(boolean(//flow/block[3]/block[1]/@top-offset)) or (//flow/block[3]/block[1]/@top-offset = 0)"/> - <eval expected="144000" xpath="//flow/block[3]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[1]/@bpd"/> - <eval expected="144000" xpath="//flow/block[3]/block[1]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[1]/block[1]/@bpd"/> - <eval expected="cell1" xpath="//flow/block[3]/block[1]/block[1]/lineArea"/> - <!-- cell 2 --> - <true xpath="//flow/block[3]/block[2]/@is-reference-area"/> - <eval expected="149000" xpath="//flow/block[3]/block[2]/@left-offset"/> - <true xpath="not(boolean(//flow/block[3]/block[2]/@top-offset)) or (//flow/block[3]/block[2]/@top-offset = 0)"/> - <eval expected="144000" xpath="//flow/block[3]/block[2]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[2]/@bpd"/> - <eval expected="144000" xpath="//flow/block[3]/block[2]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[2]/block[1]/@bpd"/> - <eval expected="cell2" xpath="//flow/block[3]/block[2]/block[1]/lineArea"/> - <eval expected="color=#ffff00" xpath="//flow/block[3]/block[2]/@background"/> - <!-- cell 3 --> - <true xpath="//flow/block[3]/block[3]/@is-reference-area"/> - <eval expected="5000" xpath="//flow/block[3]/block[3]/@left-offset"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/@top-offset"/> - <eval expected="144000" xpath="//flow/block[3]/block[3]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/@bpd"/> - <eval expected="144000" xpath="//flow/block[3]/block[3]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[3]/block[1]/@bpd"/> - <eval expected="cell3" xpath="//flow/block[3]/block[3]/block[1]/lineArea"/> - <eval expected="color=#ffa500" xpath="//flow/block[3]/block[3]/@background"/> - <!-- cell 4 --> - <true xpath="//flow/block[3]/block[4]/@is-reference-area"/> - <eval expected="149000" xpath="//flow/block[3]/block[4]/@left-offset"/> - <eval expected="14400" xpath="//flow/block[3]/block[4]/@top-offset"/> - <eval expected="144000" xpath="//flow/block[3]/block[4]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[4]/@bpd"/> - <eval expected="144000" xpath="//flow/block[3]/block[4]/block[1]/@ipd"/> - <eval expected="14400" xpath="//flow/block[3]/block[4]/block[1]/@bpd"/> - <eval expected="cell4" xpath="//flow/block[3]/block[4]/block[1]/lineArea"/> - </checks> + </fo:block-container> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <!-- spaces --> + <eval expected="5000" xpath="//flow/block[2]/@space-before"/> + <eval expected="10000" xpath="//flow/block[2]/@space-after"/> + <!-- table dimensions --> + <eval expected="303000" xpath="//flow/block[2]/@ipda"/> + <eval expected="303000" xpath="//flow/block[2]/@ipd"/> + <eval expected="43800" xpath="//flow/block[2]/@bpda"/> + <eval expected="28800" xpath="//flow/block[2]/@bpd"/> + <!-- cell 1 --> + <true xpath="//flow/block[2]/block[1]/@is-reference-area"/> + <eval expected="5000" xpath="//flow/block[2]/block[1]/@left-offset"/> + <true xpath="not(boolean(//flow/block[2]/block[1]/@top-offset)) or (//flow/block[3]/block[1]/@top-offset = 0)"/> + <eval expected="144000" xpath="//flow/block[2]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpd"/> + <eval expected="144000" xpath="//flow/block[2]/block[1]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/@bpd"/> + <eval expected="cell1" xpath="//flow/block[2]/block[1]/block[1]/lineArea"/> + <!-- cell 2 --> + <true xpath="//flow/block[2]/block[2]/@is-reference-area"/> + <eval expected="149000" xpath="//flow/block[2]/block[2]/@left-offset"/> + <true xpath="not(boolean(//flow/block[2]/block[2]/@top-offset)) or (//flow/block[3]/block[2]/@top-offset = 0)"/> + <eval expected="144000" xpath="//flow/block[2]/block[2]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[2]/@bpd"/> + <eval expected="144000" xpath="//flow/block[2]/block[2]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[2]/block[1]/@bpd"/> + <eval expected="cell2" xpath="//flow/block[2]/block[2]/block[1]/lineArea"/> + <eval expected="color=#ffff00" xpath="//flow/block[2]/block[2]/@background"/> + <!-- cell 3 --> + <true xpath="//flow/block[2]/block[3]/@is-reference-area"/> + <eval expected="5000" xpath="//flow/block[2]/block[3]/@left-offset"/> + <eval expected="14400" xpath="//flow/block[2]/block[3]/@top-offset"/> + <eval expected="144000" xpath="//flow/block[2]/block[3]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[3]/@bpd"/> + <eval expected="144000" xpath="//flow/block[2]/block[3]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[3]/block[1]/@bpd"/> + <eval expected="cell3" xpath="//flow/block[2]/block[3]/block[1]/lineArea"/> + <eval expected="color=#ffa500" xpath="//flow/block[2]/block[3]/@background"/> + <!-- cell 4 --> + <true xpath="//flow/block[2]/block[4]/@is-reference-area"/> + <eval expected="149000" xpath="//flow/block[2]/block[4]/@left-offset"/> + <eval expected="14400" xpath="//flow/block[2]/block[4]/@top-offset"/> + <eval expected="144000" xpath="//flow/block[2]/block[4]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[4]/@bpd"/> + <eval expected="144000" xpath="//flow/block[2]/block[4]/block[1]/@ipd"/> + <eval expected="14400" xpath="//flow/block[2]/block[4]/block[1]/@bpd"/> + <eval expected="cell4" xpath="//flow/block[2]/block[4]/block[1]/lineArea"/> + </checks> </testcase> diff --git a/test/layoutengine/testcases/table_space-before_space-after_1.xml b/test/layoutengine/testcases/table_space-before_space-after_1.xml new file mode 100644 index 000000000..430d8689a --- /dev/null +++ b/test/layoutengine/testcases/table_space-before_space-after_1.xml @@ -0,0 +1,203 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks space properties on table. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="1.8in"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" id="retain"> + <fo:flow flow-name="xsl-region-body"> + <fo:table table-layout="fixed" width="100%" border-collapse="separate" space-before="20pt" space-before.conditionality="retain" space-after="10pt" space-after.conditionality="retain"> + <fo:table-column column-width="proportional-column-width(1)"/> + <fo:table-column column-width="proportional-column-width(9)"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell> + <fo:block>cell1</fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="justify"> +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + </fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <fo:block space-before.optimum="10pt" space-before.conditionality="retain" space-after="20pt" space-after.conditionality="retain"> +Two blocks, testing conditionality="retain". + </fo:block> + </fo:flow> + </fo:page-sequence> + <fo:page-sequence master-reference="normal" id="discard"> + <fo:flow flow-name="xsl-region-body"> + <fo:table table-layout="fixed" width="100%" border-collapse="separate" space-before="20pt" space-before.conditionality="discard" space-after="10pt" space-after.conditionality="discard"> + <fo:table-column column-width="proportional-column-width(1)"/> + <fo:table-column column-width="proportional-column-width(9)"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell> + <fo:block>cell1</fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="justify"> +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + </fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + <fo:block space-before="10pt" space-before.conditionality="discard" space-after="20pt" space-after.conditionality="discard"> +Two blocks, testing conditionality="discard". + </fo:block> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker" id="retain"> + <box w="0"/> <!-- Helper box bearing the SpaceHandlingPosition and making sure the glue gets processed --> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="0"/> + + <penalty w="0" p="INF"/> + <glue w="10000"/> + <penalty w="14400"/> <!-- p is not of interest here --> + <glue w="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="28800"/> + + <penalty w="0" p="INF"/> + <glue w="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="14400"/> + + <!-- skip three more lines --> + <skip>8</skip> + <skip>8</skip> + <skip>8</skip> + <skip>8</skip> + <skip>8</skip> + + <penalty w="0" p="INF"/> + <glue w="10000"/> + <penalty w="0" p="0"/> + <glue w="-30000"/> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="28800"/> <!-- end of table --> + + <penalty w="0" p="INF" aux="true"/> + <glue w="10000"/> + <penalty w="0" p="0"/> + <glue w="-10000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="10000"/> + + <box w="14400"/> <!-- second block --> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="20000"/> + + <box w="0"/> <!-- This is used to make sure the preceding glue is not cut off --> + + <skip>3</skip> + </element-list> + <element-list category="breaker" id="discard"> + <box w="0"/> <!-- Helper box used to notify the LM for the addAreas stage about the discarded spaces --> + <box w="0"/> + <penalty w="14400"/> <!-- p is not of interest here --> + <box w="28800"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="14400"/> + <penalty w="0" p="0"/> + <box w="28800"/> + <penalty w="0" p="0"/> + <glue w="10000"/> + + <box w="14400"/> <!-- second block --> + + <box w="0"/> <!-- SpaceHandlingPosition-bearing helper box --> + + <skip>3</skip> + </element-list> + + <eval expected="4" xpath="count(//pageViewport)"/> + + <!-- 1: retain --> + <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="10000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after"/> + <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <!-- the following space is eliminated/collapsed through space resolution --> + <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/> + <eval expected="10000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-before"/> + <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-after"/> + + <!-- 2: discard --> + <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/> + <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/> + <eval expected="10000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-before"/> + <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-after))"/> + </checks> +</testcase> diff --git a/test/layoutengine/testcases/table_space-before_space-after_2.xml b/test/layoutengine/testcases/table_space-before_space-after_2.xml new file mode 100644 index 000000000..310c1135a --- /dev/null +++ b/test/layoutengine/testcases/table_space-before_space-after_2.xml @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright 2005 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- $Id$ --> +<testcase> + <info> + <p> + This test checks space properties on table. Demonstrates that spaces are repeated on every generated area. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg"> + <fo:layout-master-set> + <fo:simple-page-master master-name="normal" page-width="5in" page-height="30pt"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="normal" white-space-collapse="true"> + <fo:flow flow-name="xsl-region-body" line-height="10pt" font-size="9pt"> + <fo:table table-layout="fixed" width="100%" border-collapse="separate" space-before="5pt" space-before.conditionality="retain" background-color="yellow"> + <fo:table-column column-width="proportional-column-width(1)"/> + <fo:table-column column-width="proportional-column-width(9)"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell> + <fo:block>cell1</fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block>line 1</fo:block> + <fo:block>line 2</fo:block> + <fo:block>line 3</fo:block> + <fo:block>line 4</fo:block> + <fo:block>line 5</fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <element-list category="breaker"> + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + <penalty w="0" p="0"/> + <glue w="-5000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + <penalty w="0" p="0"/> + <glue w="-5000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + <penalty w="0" p="0"/> + <glue w="-5000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + <penalty w="0" p="0"/> + <glue w="-5000"/> + + <box w="0"/> + <penalty w="0" p="INF"/> + <glue w="5000"/> + <box w="10000"/> + + <skip>3</skip> + </element-list> + <eval expected="3" xpath="count(//pageViewport)"/> + <eval expected="5000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="5000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="5000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/> + <eval expected="1" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block)"/> + <eval expected="1" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block)"/> + <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block)"/> + <eval expected="2" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block)"/> + <eval expected="2" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block)"/> + <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block)"/> + + </checks> +</testcase> diff --git a/test/layoutengine/testcases/table_table-layout_fixed_1.xml b/test/layoutengine/testcases/table_table-layout_fixed_1.xml index 50c2ab834..7d1ebbaad 100644 --- a/test/layoutengine/testcases/table_table-layout_fixed_1.xml +++ b/test/layoutengine/testcases/table_table-layout_fixed_1.xml @@ -94,16 +94,16 @@ <eval expected="220000" xpath="//flow/block[1]/block[2]/@ipda"/> <eval expected="220000" xpath="//flow/block[1]/block[2]/@ipd"/> - <eval expected="10000" xpath="//flow/block[2]/@bpda"/> <!-- space-before --> + <eval expected="10000" xpath="//flow/block[2]/@space-before"/> <!-- table 2 --> - <eval expected="310000" xpath="//flow/block[3]/@ipda"/> - <eval expected="300000" xpath="//flow/block[3]/@ipd"/> - <eval expected="100000" xpath="//flow/block[3]/block[1]/@ipda"/> - <eval expected="100000" xpath="//flow/block[3]/block[1]/@ipd"/> - <eval expected="66666" xpath="//flow/block[3]/block[2]/@ipda"/> - <eval expected="66666" xpath="//flow/block[3]/block[2]/@ipd"/> - <eval expected="133333" xpath="//flow/block[3]/block[3]/@ipda"/> - <eval expected="133333" xpath="//flow/block[3]/block[3]/@ipd"/> + <eval expected="310000" xpath="//flow/block[2]/@ipda"/> + <eval expected="300000" xpath="//flow/block[2]/@ipd"/> + <eval expected="100000" xpath="//flow/block[2]/block[1]/@ipda"/> + <eval expected="100000" xpath="//flow/block[2]/block[1]/@ipd"/> + <eval expected="66666" xpath="//flow/block[2]/block[2]/@ipda"/> + <eval expected="66666" xpath="//flow/block[2]/block[2]/@ipd"/> + <eval expected="133333" xpath="//flow/block[2]/block[3]/@ipda"/> + <eval expected="133333" xpath="//flow/block[2]/block[3]/@ipd"/> </checks> </testcase> |