From 58868131c9b55c3bf8f91cad92304e118ab1de41 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Wed, 23 Jan 2008 15:22:05 +0000 Subject: Added support for conditional borders (and paddings) in tables. The proper borders are not selected yet between the header/footer and the body. There might still be a few glitches in some cases git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@614566 13f79535-47bb-0310-9956-ffa450edef68 --- .../table-cell_block_break-after.xml | 12 +- .../table-cell_span-combinations.xml | 7 +- .../table-row_break-before_break-after_2.xml | 30 +- ...table_border-collapse_collapse_conditionals.xml | 177 ++++++++++ .../table_border-collapse_collapse_spans_1.xml | 8 + ...e_border-collapse_separate_border-spacing_2.xml | 36 +- ...table_border-collapse_separate_conditionals.xml | 386 +++++++++++++++++++++ .../table_break-before_break-after.xml | 33 +- .../standard-testcases/table_bug36403.xml | 19 +- .../standard-testcases/table_empty-cells.xml | 10 +- 10 files changed, 665 insertions(+), 53 deletions(-) create mode 100644 test/layoutengine/standard-testcases/table_border-collapse_collapse_conditionals.xml create mode 100644 test/layoutengine/standard-testcases/table_border-collapse_separate_conditionals.xml (limited to 'test/layoutengine') diff --git a/test/layoutengine/standard-testcases/table-cell_block_break-after.xml b/test/layoutengine/standard-testcases/table-cell_block_break-after.xml index 14c5f3b89..8b595ce3c 100644 --- a/test/layoutengine/standard-testcases/table-cell_block_break-after.xml +++ b/test/layoutengine/standard-testcases/table-cell_block_break-after.xml @@ -66,14 +66,14 @@ - - + + - + @@ -82,8 +82,8 @@ - - + + @@ -91,6 +91,6 @@ - + diff --git a/test/layoutengine/standard-testcases/table-cell_span-combinations.xml b/test/layoutengine/standard-testcases/table-cell_span-combinations.xml index fc2357e9f..22ccc303d 100644 --- a/test/layoutengine/standard-testcases/table-cell_span-combinations.xml +++ b/test/layoutengine/standard-testcases/table-cell_span-combinations.xml @@ -53,6 +53,9 @@ cell4 + +   + @@ -78,7 +81,7 @@ - - + + diff --git a/test/layoutengine/standard-testcases/table-row_break-before_break-after_2.xml b/test/layoutengine/standard-testcases/table-row_break-before_break-after_2.xml index 93b495d56..b7f2b7c6f 100644 --- a/test/layoutengine/standard-testcases/table-row_break-before_break-after_2.xml +++ b/test/layoutengine/standard-testcases/table-row_break-before_break-after_2.xml @@ -32,16 +32,15 @@ before the table - - - + + - - cell3 + + cell1 - - cell4 + + cell2 @@ -53,5 +52,22 @@ + + + + + + + + + + + + + diff --git a/test/layoutengine/standard-testcases/table_border-collapse_collapse_conditionals.xml b/test/layoutengine/standard-testcases/table_border-collapse_collapse_conditionals.xml new file mode 100644 index 000000000..a653be423 --- /dev/null +++ b/test/layoutengine/standard-testcases/table_border-collapse_collapse_conditionals.xml @@ -0,0 +1,177 @@ + + + + + +

+ This test checks that conditional paddings and borders on table-cells are handled correctly. +

+
+ + + + + + + + + + + + Before the table + + + + + + + Cell 1.1 + Cell 1.1 + + + + + Cell 1.2 + Cell 1.2 + Cell 1.2 + Cell 1.2 + + + + + + + Cell 2.1 + Cell 2.1 + + + + + + + + Before the table + + + + + + + Cell 1.1 + + + + + Cell 1.2 + + + + + + + Cell 2.1 + Cell 2.1 + + + + + + + Cell 3.1 + Cell 3.1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_border-collapse_collapse_spans_1.xml b/test/layoutengine/standard-testcases/table_border-collapse_collapse_spans_1.xml index 5bc7aed33..4a9464bf1 100644 --- a/test/layoutengine/standard-testcases/table_border-collapse_collapse_spans_1.xml +++ b/test/layoutengine/standard-testcases/table_border-collapse_collapse_spans_1.xml @@ -208,6 +208,7 @@ + @@ -216,6 +217,7 @@ + @@ -270,6 +272,7 @@ + @@ -278,6 +281,7 @@ + @@ -301,6 +305,7 @@ + @@ -309,6 +314,7 @@ + @@ -374,6 +380,7 @@ + @@ -382,6 +389,7 @@ + diff --git a/test/layoutengine/standard-testcases/table_border-collapse_separate_border-spacing_2.xml b/test/layoutengine/standard-testcases/table_border-collapse_separate_border-spacing_2.xml index bb4746cdd..52f0de812 100644 --- a/test/layoutengine/standard-testcases/table_border-collapse_separate_border-spacing_2.xml +++ b/test/layoutengine/standard-testcases/table_border-collapse_separate_border-spacing_2.xml @@ -134,17 +134,19 @@ - - - - - - - + + + + + - + + + + + @@ -154,17 +156,19 @@ - - - - - - - + + + + + - + + + + + diff --git a/test/layoutengine/standard-testcases/table_border-collapse_separate_conditionals.xml b/test/layoutengine/standard-testcases/table_border-collapse_separate_conditionals.xml new file mode 100644 index 000000000..227d5563f --- /dev/null +++ b/test/layoutengine/standard-testcases/table_border-collapse_separate_conditionals.xml @@ -0,0 +1,386 @@ + + + + + +

+ This test checks that conditional paddings and borders on table-cells are handled correctly. +

+
+ + + + + + + + + + + + Before the table + + + + + + + Cell 1.1 + Cell 1.1 + Cell 1.1 + Cell 1.1 + + + + + Cell 1.2 + Cell 1.2 + Cell 1.2 + Cell 1.2 + + + + + + + + Before the table + + + + + + + Cell 1.1 + Cell 1.1 + Cell 1.1 + Cell 1.1 + + + + + Cell 1.2 + Cell 1.2 + Cell 1.2 + Cell 1.2 + + + + + + + + Before the table + + + + + + + Cell 1.1 + Cell 1.1 + Cell 1.1 + Cell 1.1 + + + + + Cell 1.2 + Cell 1.2 + Cell 1.2 + Cell 1.2 + + + + + + + + Before the table + + + + + + + Cell 1.1 + Cell 1.1 + Cell 1.1 + Cell 1.1 + + + + + Cell 1.2 + Cell 1.2 + Cell 1.2 + Cell 1.2 + + + + + + + + + Before the table + + + + + + Cell 1.1 + Cell 1.1 + Cell 1.1 + Cell 1.1 + + + Cell 1.2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_break-before_break-after.xml b/test/layoutengine/standard-testcases/table_break-before_break-after.xml index b85e0ea62..31c1fd8cb 100644 --- a/test/layoutengine/standard-testcases/table_break-before_break-after.xml +++ b/test/layoutengine/standard-testcases/table_break-before_break-after.xml @@ -25,23 +25,23 @@ - + before the table - - - + + - - cell3 + + cell1 - - cell4 + + cell2 @@ -53,5 +53,22 @@ + + + + + + + + + + + + + diff --git a/test/layoutengine/standard-testcases/table_bug36403.xml b/test/layoutengine/standard-testcases/table_bug36403.xml index 8d8e8950b..ee2116b50 100644 --- a/test/layoutengine/standard-testcases/table_bug36403.xml +++ b/test/layoutengine/standard-testcases/table_bug36403.xml @@ -79,21 +79,22 @@ - - - + + + + 3 - - - + + + - - - + + + 3 diff --git a/test/layoutengine/standard-testcases/table_empty-cells.xml b/test/layoutengine/standard-testcases/table_empty-cells.xml index 9d93aaab0..e9911fb4b 100644 --- a/test/layoutengine/standard-testcases/table_empty-cells.xml +++ b/test/layoutengine/standard-testcases/table_empty-cells.xml @@ -87,13 +87,13 @@ 6 - - + + - + - - + + 16 -- cgit v1.2.3