import org.apache.fop.fo.properties.LineHeightPropertyMaker;
import org.apache.fop.fo.properties.ListProperty;
import org.apache.fop.fo.properties.NumberProperty;
+import org.apache.fop.fo.properties.PositionShorthandParser;
import org.apache.fop.fo.properties.Property;
import org.apache.fop.fo.properties.PropertyMaker;
import org.apache.fop.fo.properties.ShorthandParser;
m.addEnum("fixed", makeEnumProperty(FIXED, "FIXED"));
m.addEnum("absolute", makeEnumProperty(ABSOLUTE, "ABSOLUTE"));
m.setDefault("auto");
+ m.addShorthand(s_generics[PR_POSITION]);
addPropertyMaker("absolute-position", m);
// top
m = new ToBeImplementedProperty.Maker(PR_RELATIVE_POSITION);
m.setInherited(false);
m.setDefault("static");
- addPropertyMaker("relative-position", m);
+ m.addShorthand(s_generics[PR_POSITION]);
+ addPropertyMaker("relative-position", m);
}
private void createAreaAlignmentProperties() {
m.addEnum("absolute", makeEnumProperty(ABSOLUTE, "ABSOLUTE"));
m.addEnum("fixed", makeEnumProperty(FIXED, "FIXED"));
m.setDefault("static");
+ m.setDatatypeParser(new PositionShorthandParser());
addPropertyMaker("position", m);
// size