-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#180 - Text tests - Tests a running div with overflow hidden containi…
…ng a larger replaced text. On two vertical pages and one overflow page.
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+6.07 KB
...tmltopdf-examples/src/main/resources/visualtest/expected/text/running-overflow-hidden.pdf
Binary file not shown.
29 changes: 29 additions & 0 deletions
29
openhtmltopdf-examples/src/main/resources/visualtest/html/text/running-overflow-hidden.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters