Hello,
I think I have come across a weird bug concerning static flow elements. I have a dedicated div.pdf-footer element, that I remove from the normal flow and define as static flow element for the footer.
HTML:
CSS:
And the @page rule:
At first everything was rendered correctly. However, note the 'padding-bottom' attribute of '@bottom-right'. When changing it from '8mm' to '9mm' the span.title disappears and only the span.pagenumber is rendered.
Summary: With the 'padding-bottom' attribute of the '@bottom-right' margin box < 9mm everything is rendered correctly. Increasing it to >= 9mm, the span.title disappears.
As always, I have attached the HTML as well as the two output files. Please let me know if I can be of any help or you need further information.
Greetings,
John
I think I have come across a weird bug concerning static flow elements. I have a dedicated div.pdf-footer element, that I remove from the normal flow and define as static flow element for the footer.
HTML:
<div class="pdf-footer">
<span class="pagenumber">-1</span>
<span class="title">Title</span>
</div>
CSS:
.pdf-footer {
flow: static(pdf-footer);
text-align: inside;
text-transform: uppercase;
font-size: 6pt;
line-height: 7pt;
margin: 0;
border: 1px solid orange;
}
And the @page rule:
@page {
color: #000;
size: 215mm 280mm;
margin: 12mm;
border: 1px solid green;
@bottom-right {
border: 1px solid red;
font-size: 6pt;
font-weight: bold;
content: flow(pdf-footer);
vertical-align: bottom;
padding-bottom: 8mm;
}
}
At first everything was rendered correctly. However, note the 'padding-bottom' attribute of '@bottom-right'. When changing it from '8mm' to '9mm' the span.title disappears and only the span.pagenumber is rendered.
Summary: With the 'padding-bottom' attribute of the '@bottom-right' margin box < 9mm everything is rendered correctly. Increasing it to >= 9mm, the span.title disappears.
As always, I have attached the HTML as well as the two output files. Please let me know if I can be of any help or you need further information.
Greetings,
John