-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #542 from syjer/478-li-style-decoration-positioning
#478 change list decoration placement logic
- Loading branch information
Showing
7 changed files
with
119 additions
and
6 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
Binary file added
BIN
+10.7 KB
...df-examples/src/main/resources/visualtest/expected/issue-478-list-decoration-position.pdf
Binary file not shown.
Binary file modified
BIN
+29 Bytes
(100%)
openhtmltopdf-examples/src/main/resources/visualtest/expected/replaced-plugin-latex.pdf
Binary file not shown.
Binary file modified
BIN
+2 Bytes
(100%)
openhtmltopdf-examples/src/main/resources/visualtest/expected/running-nested-list-items.pdf
Binary file not shown.
Binary file modified
BIN
-212 Bytes
(99%)
...ltopdf-examples/src/main/resources/visualtest/expected/text/columns-nested-unbalanced.pdf
Binary file not shown.
95 changes: 95 additions & 0 deletions
95
...topdf-examples/src/main/resources/visualtest/html/issue-478-list-decoration-position.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,95 @@ | ||
<html> | ||
<head> | ||
<style> | ||
|
||
@page { | ||
size: 550px 450px; | ||
} | ||
|
||
body { | ||
padding:0; | ||
margin:0; | ||
} | ||
|
||
@font-face { | ||
src: url(fonts/NotoNaskhArabic-Regular.ttf); | ||
font-family: 'arabic'; | ||
} | ||
|
||
@font-face { | ||
src: url(fonts/SourceSansPro-Regular.ttf); | ||
font-family: 'source-sans-pro'; | ||
} | ||
|
||
@font-face { | ||
src: url(fonts/Karla-Bold.ttf); | ||
font-family: 'karla-bold'; | ||
} | ||
|
||
.source-sans-pro { | ||
font-family:source-sans-pro; | ||
} | ||
|
||
.karla-bold { | ||
font-family:karla-bold; | ||
} | ||
|
||
.arabic { | ||
font-family:arabic | ||
} | ||
|
||
.serif { | ||
font-family:serif; | ||
} | ||
|
||
.sans-serif { | ||
font-family:sans-serif; | ||
} | ||
|
||
li { | ||
margin:0; | ||
padding:0; | ||
} | ||
|
||
.e1 { | ||
font-size: 40px; | ||
} | ||
.e2 { | ||
font-size: 55px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<!-- | ||
To be noted, like in chrome, if the font is _too big_ the decoration will be cut. | ||
Padding left/right can be adjusted if the current heuristic is not good enough. | ||
--> | ||
<ul > | ||
<li class="serif" >A</li> | ||
<li class="e1 serif"> | ||
<p>B</p> | ||
<p>C</p> | ||
</li> | ||
<li class="e2 serif">D</li> | ||
<li class="e3 serif">E</li> | ||
</ul> | ||
|
||
<ul class="arabic" style="direction:rtl; padding-right:40px;padding-left:0px"> | ||
<li>التنازلي 1234 بحق</li> | ||
<li class="e1">التنازلي 1234 بحق</li> <!-- the decoration is partially cut--> | ||
<li class="e2">التنازلي 1234 بحق</li> <!-- the decoration is nearly all cut--> | ||
</ul> | ||
|
||
<ul style="list-style-type:square"> | ||
<li class="karla-bold" >A</li> | ||
<li class="e1 source-sans-pro"> | ||
<p>B</p> | ||
<p>C</p> | ||
</li> | ||
<li class="e2 source-sans-pro">D</li> <!-- the decoration is partially cut--> | ||
<li class="karla-bold">E</li> | ||
</ul> | ||
|
||
</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