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. */