From dd72a1bef3d417d28a8c094673f8c07da983cab5 Mon Sep 17 00:00:00 2001 From: danfickle Date: Mon, 31 Dec 2018 17:53:00 +1100 Subject: [PATCH] #180 - Test (FAILING, SERIOUS) - The footer element is not rendering. [ci skip] Tests that a nested float in a fixed element renders correctly. Appears to be an ordering issue of the layers as if header and footer swap element order everything works. --- .../html/text/fixed-nested-float.html | 53 +++++++++++++++++++ .../TextVisualRegressionTest.java | 11 ++++ 2 files changed, 64 insertions(+) create mode 100644 openhtmltopdf-examples/src/main/resources/visualtest/html/text/fixed-nested-float.html diff --git a/openhtmltopdf-examples/src/main/resources/visualtest/html/text/fixed-nested-float.html b/openhtmltopdf-examples/src/main/resources/visualtest/html/text/fixed-nested-float.html new file mode 100644 index 000000000..bc7dbc1c5 --- /dev/null +++ b/openhtmltopdf-examples/src/main/resources/visualtest/html/text/fixed-nested-float.html @@ -0,0 +1,53 @@ + + + + + +
abcd
+ + +
PAGE 1
+
+
PAGE 2
+ + diff --git a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java index 42c512bfe..2489b2860 100644 --- a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java +++ b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java @@ -432,6 +432,17 @@ public void testFixedOnOverflowPages() throws IOException { assertTrue(run("fixed-on-overflow-pages")); } + /** + * Tests that a nested float in a fixed element renders correctly. + */ + @Test + @Ignore // SERIOUS FAILURE - The footer element is not rendering. + // Appears to be an ordering issue of the layers as if header and footer swap element order + // everything works! + public void testFixedNestedFloat() throws IOException { + assertTrue(run("fixed-nested-float")); + } + /** * Tests that a non-paginated table does not output table header, footer or caption on every page. */