]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Missing aliases for background-position-*.
authorJeremias Maerki <jeremias@apache.org>
Mon, 24 Jan 2005 09:14:36 +0000 (09:14 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 24 Jan 2005 09:14:36 +0000 (09:14 +0000)
Missing percent base for height.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198299 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FOPropertyMapping.java

index a0666c755d5e0a6d0cbfb229ab3b9bf29a3d08a1..fc2e326aa7cf2a81ba34679e63d5022ddc3a3f3a 100644 (file)
@@ -704,12 +704,20 @@ public class FOPropertyMapping implements Constants {
         m  = new LengthProperty.Maker(PR_BACKGROUND_POSITION_HORIZONTAL);
         m.setInherited(false);
         m.setDefault("0%");
+        m.addKeyword("left", "0%");
+        m.addKeyword("center", "50%");
+        m.addKeyword("right", "100%");
+        m.setPercentBase(LengthBase.CONTAINING_BOX);
         addPropertyMaker("background-position-horizontal", m);
 
         // background-position-vertical
         m  = new LengthProperty.Maker(PR_BACKGROUND_POSITION_VERTICAL);
         m.setInherited(false);
         m.setDefault("0%");
+        m.addKeyword("top", "0%");
+        m.addKeyword("center", "50%");
+        m.addKeyword("bottom", "100%");
+        m.setPercentBase(LengthBase.CONTAINING_BOX);
         addPropertyMaker("background-position-vertical", m);
 
         // border-before-color
@@ -1434,6 +1442,7 @@ public class FOPropertyMapping implements Constants {
         l  = new LengthProperty.Maker(PR_HEIGHT);
         l.setInherited(false);
         l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO"));
+        l.setPercentBase(LengthBase.BLOCK_HEIGHT);
         l.setDefault("auto");
         addPropertyMaker("height", l);