Skip to content

Commit

Permalink
#180 - Text tests - Tests that an oversized text in a running element…
Browse files Browse the repository at this point in the history
… does not generate a horizontal overflow page.
  • Loading branch information
danfickle committed Dec 23, 2018
1 parent 070df06 commit 3916cc3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<html>
<head>
<style>
@page {
size: 200px 200px;
margin: 60px;
-fs-max-overflow-pages: 10;
-fs-overflow-pages-direction: ltr;

@top-center {
content: element(hdr);
}
}
.header {
box-sizing: border-box;
height: 60px;
width: 60px;
position: running(hdr);
border: 2px solid red;
}
</style>
</head>
<body>
<div class="header" style="font-family: 'TestFont'; font-size: 14px;">ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,12 @@ public void testPageMarginsLongTextTransform() throws IOException {
public void testRunningOverflowHidden() throws IOException {
assertTrue(run("running-overflow-hidden"));
}

/**
* Tests that an oversized text in a running element does not generate a horizontal overflow page.
*/
@Test
public void testRunningOverflowNotGenerated() throws IOException {
assertTrue(run("running-overflow-not-generated"));
}
}

0 comments on commit 3916cc3

Please sign in to comment.