-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#79 - Solved the ordering problem for complex inline nesting (with te…
…stcase).
- Loading branch information
Showing
5 changed files
with
56 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ public enum StructureType { | |
FLOAT, | ||
BLOCK, | ||
INLINE, | ||
INLINE_CHILD_BOX, | ||
LIST_MARKER, | ||
REPLACED; | ||
} |
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
23 changes: 23 additions & 0 deletions
23
openhtmltopdf-examples/src/main/resources/testcases/pdfua/ordering.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,23 @@ | ||
<html> | ||
<head> | ||
<title>Complex PDF/UA Ordering Testcase</title> | ||
<meta name="description" content="A complex ordering example"/> | ||
<style> | ||
@page { | ||
size: 200px 200px; | ||
margin: 0; | ||
} | ||
body { | ||
margin: 0; | ||
width: 200px; | ||
} | ||
</style> | ||
</head> | ||
<body style="font-family: 'TestFont'; font-size: 14px;"> | ||
<p>Please check carefully the reading order of below paragraphs!</p> | ||
<p>Some <span>very <span>very <span>deeply</span> nested</span> text</span>!</p> | ||
<p>Some inlines <div>and blocks (with <span>inline</span>)</div> <span>mixed</span> <div>in</div> the same container.</p> | ||
<p>Some <span>inlines</span>, <div>blocks</div> and <span style="display: inline-block;">inline blocks (with <span>nested</span>)</span>!</p> | ||
<p>This is a link to <a title="Go to Google!" href="https://google.com">Google (external)</a>. This text should be read after the <span>link</span>.</p> | ||
</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