Forum Bugs

Taking elements from the document ...

madsfreek
The userguide says:
The last non-normal flow element that appears on a page will be used on the current page and carried onto following pages.

but this does not seem to be the case for the first page. The following html generates a pdf with 'This should not be shown on any page' on the first page:
<!DOCTYPE html>
<html lang="en">
<head>
<style type="text/css" title="text/css" media="all">

@page {
	@top-center { 
		content: flow(princeheader);
	}
}

div.princeheader {
	flow: static(princeheader);
}

div.page {
	page-break-after: always;
}

</style>
</head>
<body>
<div class=princeheader>
This should not be shown on any page
</div>
<div class=princeheader>
The last non-normal flow element that appears on a page will be used on the current page and carried onto following pages
</div>
<div class=page>Page 1</div>
<div class=page>Page 2</div>
</body>
</html>


Is this a bug or have I misunderstood the userguide?

-Mads
mikeday
This is an error in the user guide, in fact the first flowed block will be used, unless you explicitly ask for the last one like this:
@page {
   @top-center {
      content: flow(princeheader, last);
   }
}

Thanks for letting us know, we will update the documentation.