From 973d676bae6d1253f8675b216704752f5897e2fa Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 7 Dec 2005 15:15:38 +0000 Subject: Alternative set of rules for text indent calculation (start-indent and end-indent) which tries to mimic many commercial FO implementation that have chosen to break the specification in this aspect. I think I have found the behaviour for most cases. But I'm operating in reverse-engineering mode here and not all FO implementations behave in the same way! This is an optional feature that has to be explicitely enabled through the user agent. Otherwise, FOP will behave like before. In the FO tree tests a processing instruction is used to enable the feature/bug ;-) in the user agent so I can test both cases. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@354763 13f79535-47bb-0310-9956-ffa450edef68 --- test/fotree/testcases/indent-inheritance1.fo | 53 +++++++++ test/fotree/testcases/indent-inheritance2.fo | 133 +++++++++++++++++++++ test/fotree/testcases/indent-inheritance2a.fo | 163 ++++++++++++++++++++++++++ 3 files changed, 349 insertions(+) create mode 100644 test/fotree/testcases/indent-inheritance1.fo create mode 100644 test/fotree/testcases/indent-inheritance2.fo create mode 100644 test/fotree/testcases/indent-inheritance2a.fo (limited to 'test/fotree/testcases') diff --git a/test/fotree/testcases/indent-inheritance1.fo b/test/fotree/testcases/indent-inheritance1.fo new file mode 100644 index 000000000..e797c9adf --- /dev/null +++ b/test/fotree/testcases/indent-inheritance1.fo @@ -0,0 +1,53 @@ + + + + + + + + + + + + + Hello World! + + + + Hello World! + + + nested + + + + + + + nested in b-c + + + nested2 in b-c + + + + + + + + + diff --git a/test/fotree/testcases/indent-inheritance2.fo b/test/fotree/testcases/indent-inheritance2.fo new file mode 100644 index 000000000..1b07cd110 --- /dev/null +++ b/test/fotree/testcases/indent-inheritance2.fo @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + start-indent specified on outer block + unindented + + + + fo:block + + + fo:block|fo:block + + + + + + + fo:block|fo:block-container|fo:block + + + + + + start-indent specified on outer block (reset to 0pt on inner block and the block-container) + unindented + fo:block + + + fo:block|fo:block + + + + + + + fo:block|fo:block-container|fo:block + + + + + + start-indent specified on outer block (reset to 0pt on nested block in the block-container) + unindented + fo:block + + + + + + fo:block|fo:block-container|fo:block + + + + + + margin-left specified on outer block + unindented + fo:block + + + fo:block|fo:block + + + + + + + fo:block|fo:block-container|fo:block + + + + + + margin-left specified on outer block (set to 0pt on inner block and the block-container) + unindented + fo:block + + + fo:block|fo:block + + + + + + + fo:block|fo:block-container|fo:block + + + + + + margin-left specified on outer block (reset to 0pt on nested block in the block-container) + unindented + fo:block + + + + + + fo:block|fo:block-container|fo:block + + + + + + + + diff --git a/test/fotree/testcases/indent-inheritance2a.fo b/test/fotree/testcases/indent-inheritance2a.fo new file mode 100644 index 000000000..924354288 --- /dev/null +++ b/test/fotree/testcases/indent-inheritance2a.fo @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + start-indent specified on outer block + unindented + + + + fo:block + + + fo:block|fo:block + + + + + + + fo:block|fo:block-container|fo:block + + + + + + start-indent specified on outer block (reset to 0pt on inner block and the block-container) + unindented + fo:block + + + fo:block|fo:block + + + + + + + fo:block|fo:block-container|fo:block + + + + + + start-indent specified on outer block (reset to 0pt on nested block in the block-container) + unindented + fo:block + + + + + + fo:block|fo:block-container|fo:block + + + + + + margin-left specified on outer block + unindented + fo:block + + + fo:block|fo:block + + + + fo:block|fo:block (further indented using margin-left) + + + + + + + fo:block|fo:block-container|fo:block + + + + + + margin-left specified on outer block (set to 0pt on inner block and the block-container) + unindented + fo:block + + + fo:block|fo:block + + + + + + + fo:block|fo:block-container|fo:block + + + + + + margin-left specified on outer block (reset to 0pt on nested block in the block-container) + unindented + fo:block + + + + + + fo:block|fo:block-container|fo:block + + + + + + margin-left specified on outer block and start-indent on nested elements + unindented + fo:block + + + fo:block|fo:block + + + + + + + fo:block|fo:block-container|fo:block + + + + fo:block|fo:block-container|fo:block + + + + fo:block|fo:block-container|fo:block + + + + + + + + -- cgit v1.2.3