-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#472 - Tests for transformed fixed and transformed fixed custom objec…
…t (watermark). It turns out it only needed the left and top properties defined in the html.
- Loading branch information
Showing
6 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
Binary file added
BIN
+9.98 KB
.../src/main/resources/visualtest/expected/text/issue-472-add-semi-transparent-watermark.pdf
Binary file not shown.
Binary file added
BIN
+3.13 KB
openhtmltopdf-examples/src/main/resources/visualtest/expected/transform-fixed.pdf
Binary file not shown.
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 |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
height: 100%; | ||
transform: rotate(45deg); | ||
z-index: 1000; | ||
left: 0; | ||
top: 0; | ||
} | ||
</style> | ||
</head> | ||
|
18 changes: 18 additions & 0 deletions
18
openhtmltopdf-examples/src/main/resources/visualtest/html/transform-fixed.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,18 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 200px 200px; | ||
margin: 40px; | ||
} | ||
body, html { | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div style="position: fixed; transform: rotate(45deg); width: 50px; height: 50px; background-color: red; border: 5px solid purple; padding: 10px; margin: 10px; left: 20px; top: 10px;"></div> | ||
<div style="page-break-after: always;"><div style="border-bottom: 1px solid orange;"></div></div> | ||
<div style="border-bottom: 1px solid red;"></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
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