From 12270f3f4907da1b9381a5a319708a9f3c323f9f Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Tue, 13 Oct 2009 10:39:49 +0000 Subject: [PATCH] Fixed handling of percentage values for provisional-label-separation git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@824682 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/fo/FOPropertyMapping.java | 1 + status.xml | 3 + ...rovisional-label-separation_percentage.xml | 106 ++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 test/layoutengine/standard-testcases/list_provisional-label-separation_percentage.xml diff --git a/src/java/org/apache/fop/fo/FOPropertyMapping.java b/src/java/org/apache/fop/fo/FOPropertyMapping.java index 3946a3c1b..de6ffca93 100644 --- a/src/java/org/apache/fop/fo/FOPropertyMapping.java +++ b/src/java/org/apache/fop/fo/FOPropertyMapping.java @@ -2519,6 +2519,7 @@ public final class FOPropertyMapping implements Constants { m = new LengthProperty.Maker(PR_PROVISIONAL_LABEL_SEPARATION); m.setInherited(true); m.setDefault("6pt"); + m.setPercentBase(LengthBase.CONTAINING_BLOCK_WIDTH); addPropertyMaker("provisional-label-separation", m); // provisional-distance-between-starts diff --git a/status.xml b/status.xml index bfd2bc1ec..20297dae6 100644 --- a/status.xml +++ b/status.xml @@ -58,6 +58,9 @@ documents. Example: the fix of marks layering will be such a case when it's done. --> + + Fixed handling of percentage values for provisional-label-separation. + Fixed handling of percentage values for provisional-distance-between-starts. diff --git a/test/layoutengine/standard-testcases/list_provisional-label-separation_percentage.xml b/test/layoutengine/standard-testcases/list_provisional-label-separation_percentage.xml new file mode 100644 index 000000000..41a1d9413 --- /dev/null +++ b/test/layoutengine/standard-testcases/list_provisional-label-separation_percentage.xml @@ -0,0 +1,106 @@ + + + + + +

+ This test checks that provisional-label-separation works correctly when specified as a + percentage. +

+
+ + + + + + + + + + + + + • + + + list item 1 + + + + + • + + + list item 2 + + + + Inside a block-container: + + + + + • + + + list item 1 + + + + + • + + + list item 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-- 2.39.5