diff --git a/openhtmltopdf-examples/src/main/resources/visualtest/expected/issue-649-multiple-bg-images-page-box.pdf b/openhtmltopdf-examples/src/main/resources/visualtest/expected/issue-649-multiple-bg-images-page-box.pdf new file mode 100644 index 000000000..4342b7917 Binary files /dev/null and b/openhtmltopdf-examples/src/main/resources/visualtest/expected/issue-649-multiple-bg-images-page-box.pdf differ diff --git a/openhtmltopdf-examples/src/main/resources/visualtest/html/issue-649-multiple-bg-images-page-box.html b/openhtmltopdf-examples/src/main/resources/visualtest/html/issue-649-multiple-bg-images-page-box.html new file mode 100644 index 000000000..5ac26a55e --- /dev/null +++ b/openhtmltopdf-examples/src/main/resources/visualtest/html/issue-649-multiple-bg-images-page-box.html @@ -0,0 +1,31 @@ + + + + + +
+ + diff --git a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java index 2a14480e7..6e3e75bde 100644 --- a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java +++ b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/VisualRegressionTest.java @@ -1391,6 +1391,14 @@ public void testIssue649MultipleBgImagesAdvanced() throws IOException { assertTrue(vt.runTest("issue-649-multiple-bg-images-advanced")); } + /** + * Tests that multiple background images can be used in a page at-rule. + */ + @Test + public void testIssue649MultipleBgImagesPageBox() throws IOException { + assertTrue(vt.runTest("issue-649-multiple-bg-images-page-box")); + } + // TODO: // + Elements that appear just on generated overflow pages. // + content property (page counters, etc)