-
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.
#364 Tests unsupported paginated table inside a footnote.
Unsupported but does not cause infinite loop, OOM, etc.
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
...topdf-examples/src/main/resources/visualtest/html/issue-364-invalid-footnote-content.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,61 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 300px 300px; | ||
} | ||
html { | ||
orphans: 0; | ||
widows: 0; | ||
} | ||
body { | ||
font-size: 16px; | ||
} | ||
.footnote { | ||
color: green; | ||
float: footnote; | ||
} | ||
::footnote-call { | ||
counter-increment: footnote; | ||
content: " [fn " counter(footnote) "] "; | ||
} | ||
::footnote-marker { | ||
content: "fn " counter(footnote) ". "; | ||
} | ||
thead td { | ||
background: orange; | ||
} | ||
tfoot td { | ||
background: aqua; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
This is some in-flow content. | ||
|
||
<div class="footnote"> | ||
This footnote has a paginated table inside. | ||
<table style="-fs-table-paginate: paginate; border-collapse: collapse;"> | ||
<thead> | ||
<tr><td>One</td></tr> | ||
<tr><td>Two</td></tr> | ||
</thead> | ||
<tbody> | ||
<tr><td>Three</td></tr> | ||
<tr><td>Four</td></tr> | ||
<tr><td>Five</td></tr> | ||
</tbody> | ||
<tfoot> | ||
<tr><td>Six</td></tr> | ||
</tfoot> | ||
</table> | ||
</div> | ||
|
||
End of document. | ||
|
||
<div class="footnote"> | ||
Normal footnote | ||
</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