@page size and margin print test

This page sets @page { size: A4; margin: 0 } and is exactly one A4 page (210 mm × 297 mm). Print it.

Expected: one A4 page; the 0 mark of both rulers on the paper edge; this frame 15 mm from every edge of the paper. Printer margins may clip the rulers, but must not move them.

If size is ignored: the print dialog offers the printer's default paper, such as Letter. If margin: 0 does not reach the paper edge: the rulers and the frame move away from it, by the printer's margins (and headers or footers the browser adds), and the bottom of the sheet spills onto a second page.

Results

Chromium 151 (print to PDF): one A4 page, 209.9 mm × 297.0 mm.

Safari on iOS 27.0.1 (iPhone, print preview): paper A4, scale 100 %, but two pages. The rulers and the frame sit inside the paper edge, and Safari adds the URL, the date and the page number in a footer on every page.

This page is the test case for caniuse pull request #7605, which marks @page support in iOS Safari as partial. The pull request has the iOS screenshot and the WebKit source behind it.