@page.size not taking effect unless @page.bleed also specified
I'm trying to setup samples using paged.js on https://polytype.dev using the latest pagedjs (0.4.3) in a fresh (remote CI and isolated local) install.
I just started playing with simple examples and ran into a bug:
<html>
<head>
<style>
@page {
size: A7;
bleed: 0;
margin: 1cm;
}
p {
text-indent: 1cm;
text-align: justify;
}
</style>
</head>
<p>
An A7 page with 1cm margins and 1cm paragraph indentation.
</p>
</html>
Note that if you remove the bleed: 0;
declaration this sample does not generate properly. The resulting paper size is A4 even though the actual canvas used is appropriately sized. By adding the bleed declaration I was able to work around that and get an actual A7 sized output.