-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#328 Regression test. Tests SVG in a wrapper element with named page.
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
Binary file added
BIN
+1.4 KB
...ltopdf-examples/src/main/resources/visualtest/expected/svg-in-wrapper-with-named-page.pdf
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
...htmltopdf-examples/src/main/resources/visualtest/html/svg-in-wrapper-with-named-page.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,22 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page toc { | ||
margin: 1.3cm 2.5cm; | ||
size: 7cm 7cm; | ||
} | ||
body { | ||
margin-top: 0; | ||
} | ||
.toc { | ||
page: toc; | ||
font-size: 12px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="toc"> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 34.24" width="50" height="50"><polygon points="18 0 23.56 11.27 36 13.08 27 21.85 29.13 34.24 18 28.39 6.88 34.24 9 21.85 0 13.08 12.44 11.27 18 0" fill="#f4bd5e"/></svg> | ||
</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