diff --git a/openhtmltopdf-examples/src/main/resources/visualtest/expected/text/page-margins-long-text-transform.pdf b/openhtmltopdf-examples/src/main/resources/visualtest/expected/text/page-margins-long-text-transform.pdf new file mode 100644 index 000000000..9306c3d29 Binary files /dev/null and b/openhtmltopdf-examples/src/main/resources/visualtest/expected/text/page-margins-long-text-transform.pdf differ diff --git a/openhtmltopdf-examples/src/main/resources/visualtest/html/text/page-margins-long-text-transform.html b/openhtmltopdf-examples/src/main/resources/visualtest/html/text/page-margins-long-text-transform.html new file mode 100644 index 000000000..d63a7b6c3 --- /dev/null +++ b/openhtmltopdf-examples/src/main/resources/visualtest/html/text/page-margins-long-text-transform.html @@ -0,0 +1,32 @@ + +
+ + + + + + 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 e51eb076b..26abf213a 100644 --- a/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java +++ b/openhtmltopdf-examples/src/test/java/com/openhtmltopdf/visualregressiontests/TextVisualRegressionTest.java @@ -390,4 +390,13 @@ public void testTransformAbsolute() throws IOException { public void testTransformFloat() throws IOException { assertTrue(run("transform-float")); } + + /** + * Tests a long text transform in left-middle on overflow page. + * Common case of wanting a strip of vertical text in the left margin. + */ + @Test + public void testPageMarginsLongTextTransform() throws IOException { + assertTrue(run("page-margins-long-text-transform")); + } }