diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-08-21 14:09:25 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-08-21 14:09:25 +0000 |
commit | f0099e5686c2d711522e7fee57aba9f6f8224616 (patch) | |
tree | 4251c459c20e908aaf41e0faa6e8c1534c5d2100 /test/layoutengine | |
parent | 46072c1c25fae63aa3b74bfbe1fc7198fbdf163e (diff) | |
download | xmlgraphics-fop-f0099e5686c2d711522e7fee57aba9f6f8224616.tar.gz xmlgraphics-fop-f0099e5686c2d711522e7fee57aba9f6f8224616.zip |
Show and fix a bug where bottom/right positioning of block-containers didn't work properly when the block-container is nested in a block.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@234203 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine')
-rw-r--r-- | test/layoutengine/testcases/block-container-abs1.xml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/layoutengine/testcases/block-container-abs1.xml b/test/layoutengine/testcases/block-container-abs1.xml index 37c220252..10e34f67c 100644 --- a/test/layoutengine/testcases/block-container-abs1.xml +++ b/test/layoutengine/testcases/block-container-abs1.xml @@ -43,6 +43,9 @@ This is some background-text. This is some background-text. This is some background-text. + <fo:block-container left="100pt" top="100pt" right="100pt" bottom="100pt" absolute-position="absolute" background-color="orange" color="black"> + <fo:block background-color="yellow">absolutely positioned right/bottom (inside a block)</fo:block> + </fo:block-container> This is some background-text. This is some background-text. This is some background-text. @@ -66,7 +69,7 @@ <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipda"/> <!-- *** second block-container *** --> - <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@is-viewport-area"/> + <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@is-viewport-area"/> <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@positioning"/> <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/> <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/> @@ -77,5 +80,16 @@ <!-- -> containing block (skipping dummy block)--> <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@ipd"/> <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@ipda"/> + + <!-- *** third block-container *** --> + <true xpath="//flow/block[3]/block[1]/@is-viewport-area"/> + <eval expected="absolute" xpath="//flow/block[3]/block[1]/@positioning"/> + <eval expected="160000" xpath="//flow/block[3]/block[1]/@ipd"/> + <eval expected="160000" xpath="//flow/block[3]/block[1]/@ipda"/> + <eval expected="160000" xpath="//flow/block[3]/block[1]/@bpd"/> + <eval expected="160000" xpath="//flow/block[3]/block[1]/@bpda"/> + <eval expected="100000" xpath="//flow/block[3]/block[1]/@left-position"/> + <eval expected="100000" xpath="//flow/block[3]/block[1]/@top-position"/> + </checks> </testcase> |