]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Add margin on simple-page-master as additional feature.
authorJeremias Maerki <jeremias@apache.org>
Wed, 27 Jul 2005 19:16:16 +0000 (19:16 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 27 Jul 2005 19:16:16 +0000 (19:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225580 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/testcases/page-master4.xml

index bdbc0bd8b9122ab71f9364044bbd1f4d91342fc5..f5d730d04529ea055349d1aad63645e7a803afcb 100644 (file)
@@ -24,7 +24,7 @@
   <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="master1" page-width="5in" page-height="5in">
+        <fo:simple-page-master master-name="master1" page-width="5in" page-height="5in" margin="10pt">
           <fo:region-body background-color="rgb(100%, 100%, 80%)" margin="30pt"/>
           <fo:region-before background-color="rgb(100%, 80%, 80%)" extent="20pt"/>
           <fo:region-after background-color="rgb(80%, 80%, 80%)" extent="20pt" precedence="true" display-align="after"/>
     <eval expected="0 0 360000 360000" xpath="//pageViewport/@bounds"/>
     
     <eval expected="20000" xpath="//regionBefore/@bpda"/>
-    <eval expected="320000" xpath="//regionBefore/@ipda"/>
+    <eval expected="300000" xpath="//regionBefore/@ipda"/>
     <eval expected="color=#ffcccc,repeat=0,horiz=0,vertical=0" xpath="//regionBefore/../@background"/>
     
     <eval expected="20000" xpath="//regionAfter/@bpda"/>
-    <eval expected="360000" xpath="//regionAfter/@ipda"/>
-    <!-- 360pt due to precendece -->
+    <eval expected="340000" xpath="//regionAfter/@ipda"/>
+    <!-- 360pt due to precendence -->
     <eval expected="color=#cccccc,repeat=0,horiz=0,vertical=0" xpath="//regionAfter/../@background"/>
     
-    <eval expected="340000" xpath="//regionStart/@bpda"/>
+    <eval expected="320000" xpath="//regionStart/@bpda"/>
     <eval expected="20000" xpath="//regionStart/@ipda"/>
     <eval expected="color=#ccffcc,repeat=0,horiz=0,vertical=0" xpath="//regionStart/../@background"/>
     
     <eval expected="20000" xpath="//regionEnd/@bpda"/>
-    <eval expected="340000" xpath="//regionEnd/@ipda"/>
+    <eval expected="320000" xpath="//regionEnd/@ipda"/>
     <!-- bpd and ipd flipped due to reference-orientation -->
     <eval expected="color=#ccccff,repeat=0,horiz=0,vertical=0" xpath="//regionEnd/../@background"/>
     
-    <eval expected="300000" xpath="//regionBody/@bpda"/>
-    <eval expected="300000" xpath="//regionBody/@ipda"/>
+    <eval expected="280000" xpath="//regionBody/@bpda"/>
+    <eval expected="280000" xpath="//regionBody/@ipda"/>
     <eval expected="color=#ffffcc,repeat=0,horiz=0,vertical=0" xpath="//regionBody/../@background"/>
     
   </checks>