From: Jeremias Maerki Date: Mon, 24 Jan 2005 09:14:36 +0000 (+0000) Subject: Missing aliases for background-position-*. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~208 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e1279dccf4efb1587659a6bb1475d4358490d4de;p=xmlgraphics-fop.git 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 --- 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);