-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#364 Failing test for position: fixed content.
It is sitting above the footnotes.
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
...s/src/main/resources/visualtest/html/footnote/issue-364-footnotes-positioned-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,52 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 250px 300px; | ||
} | ||
@page { | ||
@footnote { | ||
float: bottom; | ||
box-sizing: border-box; | ||
width: 100%; | ||
border: 1px solid green; | ||
max-height: 65%; | ||
} | ||
} | ||
body { | ||
margin: 0 10px; | ||
font-size: 18px; | ||
|
||
/* When there is limited space for lines (such as with large footnote area) | ||
then orphans and widows can create undesirable layout. */ | ||
orphans: 0; | ||
widows: 0; | ||
} | ||
::footnote-call { | ||
counter-increment: footnote 1; | ||
} | ||
span.footnote { | ||
float: footnote; | ||
} | ||
.footnote::footnote-call { | ||
content: "[" counter(footnote) "]"; | ||
} | ||
.footnote::footnote-marker { | ||
content: counter(footnote) ". "; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p style="margin-top: 0;"> | ||
This text needs some footnotes. <span id="1" class="footnote">This is a footnote.</span> | ||
Also a footnote for this sentence. <span id="2" class="footnote">Another <strong>footnote</strong>!</span> | ||
</p> | ||
|
||
<p style="page-break-before: always;"> | ||
Footnote numbers. <span id="3" class="footnote">Just to be silly this is a really long footnote that will need wrapping and such.</span> | ||
</p> | ||
|
||
<div style="background: blue; position: fixed; bottom: 0; left: 40%; width: 40%; height: 50px;"></div> | ||
<div style="background: red; position: absolute; bottom: 0; left: 0; width: 40%; height: 50px;"></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