Rendering
Chromium
Render with a full browser engine.
Set "engine": "chromium".
The first Chromium render of a project, and the first after five minutes without one, starts a browser session for the project, which adds a few seconds. Later renders reuse the open session.
For the differences with Forme, see Choosing an engine.
What it renders
| Feature | Behavior |
|---|---|
| CSS | The CSS a current browser prints, including gradients and box-shadow. |
| Media type | print. |
| Backgrounds | Background colors and images are printed. |
| SVG | Rendered. |
| Fonts | Any web font format. See Fonts for what renders without a registered font. |
| Scripts | Not run. |
position: fixed | Repeats on every page. |
@page margin boxes | Printed, with counter(page) and counter(pages). |
<thead>, <tfoot> | Repeat on every page. |
scale option | Zooms the content; the sheet keeps its size. |
tagged option | Tagged PDF by default; false gives a smaller untagged file. |
Page numbers and headers
Use @page margin boxes or position: fixed; see Page setup.
Errors
The errors specific to Chromium are render_deadline_exceeded (422) and renderer_unavailable (503); see Error codes.