From e1279dccf4efb1587659a6bb1475d4358490d4de Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 24 Jan 2005 09:14:36 +0000 Subject: [PATCH] Missing aliases for background-position-*. 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java index a0666c755..fc2e326aa 100644 --- a/src/java/org/apache/fop/fo/FOPropertyMapping.java +++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java @@ -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); -- 2.39.5