Skip to content

Commit

Permalink
#180 - Text tests - Tests a running div with overflow hidden containi…
Browse files Browse the repository at this point in the history
…ng a larger replaced text.

On two vertical pages and one overflow page.
  • Loading branch information
danfickle committed Dec 23, 2018
1 parent 2cba48b commit 070df06
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<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;
overflow: hidden;
}
</style>
</head>
<body>
<div class="header" style="font-family: 'TestFont'; font-size: 14px;">ABCDEFGHIJKLMNOPQRSTUVWXYZ</div>

<div style="width: 150%; height: 20px; background-color: transparent; page-break-after: always;"></div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -399,4 +399,13 @@ public void testTransformFloat() throws IOException {
public void testPageMarginsLongTextTransform() throws IOException {
assertTrue(run("page-margins-long-text-transform"));
}

/**
* Tests a running div with overflow hidden containing a larger replaced text.
* On two vertical pages and one overflow page.
*/
@Test
public void testRunningOverflowHidden() throws IOException {
assertTrue(run("running-overflow-hidden"));
}
}

0 comments on commit 070df06

Please sign in to comment.