-
Notifications
You must be signed in to change notification settings - Fork 364
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 - transform absolute block and transform float block …
…across multiple pages.
- Loading branch information
Showing
5 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+4.34 KB
openhtmltopdf-examples/src/main/resources/visualtest/expected/text/transform-absolute.pdf
Binary file not shown.
Binary file added
BIN
+5.63 KB
openhtmltopdf-examples/src/main/resources/visualtest/expected/text/transform-float.pdf
Binary file not shown.
20 changes: 20 additions & 0 deletions
20
openhtmltopdf-examples/src/main/resources/visualtest/html/text/transform-absolute.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,20 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 200px 200px; | ||
margin: 40px; | ||
} | ||
body, html { | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
<body style="font-family: 'TestFont'; color: black; font-size: 30px;"> | ||
<div style="border: 1px solid black; width: 50px; height: 50px;"> | ||
1234 | ||
<div style="position: absolute; transform: rotate(45deg); width: 50px; height: 50px; background-color: red; border: 5px solid purple; padding: 10px; margin: 10px; left: 20px; top: 10px;">ABCD</div> | ||
EFGH | ||
</div> | ||
</body> | ||
</html> |
20 changes: 20 additions & 0 deletions
20
openhtmltopdf-examples/src/main/resources/visualtest/html/text/transform-float.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,20 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 200px 200px; | ||
margin: 40px; | ||
} | ||
body, html { | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
<body style="font-family: 'TestFont'; color: black; font-size: 30px;"> | ||
<div style="border: 1px solid black; width: 50px; height: 50px;"> | ||
123 | ||
<div style="float: right; transform: rotate(45deg); width: 30px; height: 50px; background-color: red; border: 5px solid purple; padding: 10px; margin: 10px;">7890123456</div> | ||
456 | ||
</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