Skip to content

Commit

Permalink
#180 Test text transform on overflow page in page margin.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfickle committed Dec 20, 2018
1 parent fb3344e commit 2cba48b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<html>
<head>
<style>
@page {
size: 200px 200px;
margin: 25px;
-fs-max-overflow-pages: 10;
-fs-overflow-pages-direction: ltr;

@left-top {
content: " "; /* Spacer cell */
}
@left-middle {
content: " "; /* Spacer cell */
}
@left-bottom {
font-family: 'TestFont';
content: "Very long content";
font-size: 16px;
max-height: 25px;
transform: translateY(50px) rotate(-90deg);
transform-origin: left top;
white-space: nowrap;
vertical-align: top;
}
}
</style>
</head>
<body>
<div style="width: 150%; height: 20px; background-color: transparent;"></div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
}

0 comments on commit 2cba48b

Please sign in to comment.