-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #459 - Implements the rem CSS unit.
With test proof.
- Loading branch information
Showing
9 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
Binary file added
BIN
+1.99 KB
openhtmltopdf-examples/src/main/resources/visualtest/expected/issue-459-rem-unit-default.pdf
Binary file not shown.
20 changes: 20 additions & 0 deletions
20
openhtmltopdf-examples/src/main/resources/visualtest/html/issue-459-rem-unit-default.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: 15rem 240px; | ||
margin: 0.5rem; | ||
} | ||
body { | ||
border: 1px solid orange; | ||
margin: 1rem; | ||
max-width: 12rem; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<!-- Should look the same if rem default amount is 16px --> | ||
<div style="margin: 16px; padding: 0.1rem 32px; border: 1.6px solid red; background-color: blue; height: 24px;">ONE</div> | ||
<div style="margin: 1rem; padding: 1.6px 2rem; border: 0.1rem solid red; background-color: blue; height: 1.5rem;">TWO</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