#918: @page margin boxes

Visit on Github.

Opened Nov 16, 2023

TAG、コード コマンドの芸術。 タグを付けてタペストリーを織ります。

I'm requesting a TAG review of @page margin boxes.

Page margin boxes can be defined in paged media (such as printing or when generating PDFs) by authors, to define content outside the page area, i.e. in the margin area. This is the area where the browser normally puts headers and footers (which typically may include the document title, URL, time stamp, page number and total number of pages), if enabled. @page margin boxes enable an author to customize this part of the page - not just at the top and at the bottom, but also on the left and right sides, as well as the corners. The spec defines 16 margin areas - 4 corners, and 3 parts (beginning, middle, end) on each of the 4 sides. Each area is defined via an @-rule nested inside an @page rule.

Further details:

No browsers are currently known to implement this feature, but it is supported by certain PDF generators, such as Prince XML [1] and Antenna House Formatter [2].

[1] https://www.princexml.com/doc/css-at-rules/ [2] https://www.antenna.co.jp/AHF/help/en/ahf-css6.html

We'd prefer the TAG provide feedback as (please delete all but the desired option):

💬 leave review feedback as a comment in this issue and @-notify mstensho

Discussions

2023-12-11

Minutes

Rossen: great addition. Bridging technology that already exists for some of the printing renderers. Suggesting that this capability should be able to target different parts of a page when the content of a given document is printed. If you want to add additional content and target specific areas of the page with it. The additional granularity of targeting the margin areas allows for higher and higher quality print scenarios that are already possible to some of the industry standard renderers that are not necessarily browsers. I'd say we can close satisfied

Peter: this is just talking about page margin boxes that have been defined for the last 15-20 years and chrome wants to implement it?

Rossen: right. Princexml is already doing it

Peter: so not adding anything new? Just implementing?

Rossen: yeah, it's basically what's in the spec

Rossen to leave feedback and close