<story><title>CSS for printing to paper</title><url>https://voussoir.net/writing/css_for_printing</url></story><parent_chain><item><author>persnickety</author><text>Browser support for printing CSS is spotty. Worse: some features, like footnotes on every page, don&amp;#x27;t have any equivalent in CSS I know of.&lt;p&gt;Is there any easy to use&amp;#x2F;hack HTML layouting engine where I could experiment with custom CSS attributes and bridge that gap? Would anything from Servo be suitable?&lt;p&gt;Modifying an entire browser with its bloat is too much effort. There is no JS or cookies on paper (they can be in paper if you wrap them).</text></item></parent_chain><comment><author>tingletech</author><text>&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;pagedjs.org&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;pagedjs.org&lt;/a&gt; has a polyfill that implements &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.w3.org&amp;#x2F;TR&amp;#x2F;css-gcpm-3&amp;#x2F;#footnotes&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.w3.org&amp;#x2F;TR&amp;#x2F;css-gcpm-3&amp;#x2F;#footnotes&lt;/a&gt;</text></comment>
<story><title>CSS for printing to paper</title><url>https://voussoir.net/writing/css_for_printing</url></story><parent_chain><item><author>persnickety</author><text>Browser support for printing CSS is spotty. Worse: some features, like footnotes on every page, don&amp;#x27;t have any equivalent in CSS I know of.&lt;p&gt;Is there any easy to use&amp;#x2F;hack HTML layouting engine where I could experiment with custom CSS attributes and bridge that gap? Would anything from Servo be suitable?&lt;p&gt;Modifying an entire browser with its bloat is too much effort. There is no JS or cookies on paper (they can be in paper if you wrap them).</text></item></parent_chain><comment><author>spystath</author><text>You don&amp;#x27;t have to use a &lt;i&gt;browser&lt;/i&gt;. I had very good results with Weasyprint [0]. And there&amp;#x27;s also PrinceXML [1] if you&amp;#x27;re willing to pay.&lt;p&gt;[0]: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;weasyprint.org&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;weasyprint.org&amp;#x2F;&lt;/a&gt;
[1]: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.princexml.com&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.princexml.com&amp;#x2F;&lt;/a&gt;</text></comment>