- From: Morten Stenshorne via GitHub <noreply@w3.org>
- Date: Mon, 08 Dec 2025 14:27:50 +0000
- To: public-css-archive@w3.org
> I have one suggestion on this part of the suggested spec-text:
>
> > page-margin-safety only affects margins that are adjacent to a page's edges. In other words, when page-margin-safety is specified in a margin context, it will only have an effect at one or two sides.
>
> **Suggestion:** For the purpose of making this easier to reason about and to spec, it's probably simplest to handle this by just defining the `<safe-printable-inset>` as being `0` on **all sides of a page-margin-box that are adjacent to the `page box`** (i.e. all of the sides that are facing inward toward the document).
Sounds good, except that it cannot be "page box". That's the entire thing. Either "page area" or "page border box" (if that one is sufficiently defined in the spec), https://drafts.csswg.org/css-page-3/#page-model
> Also: I think we **need to be very careful** to define how `@page { page-margin-safety: [clamp|add] }` impacts the size & placement of the margin boxes -- specifically, we need to define what it means for the algorithm in https://drafts.csswg.org/css-page-3/#fixed-sizing (section 5.3.3). We can perhaps leave the details to spec-editors [...]
Good point. Yes, safe margins need to be taken into account before layout. Auto margins need to be taken into account both before (to shrink any non-fixed box size) and after layout (position the box within the safe area).
Maybe this is a start: https://github.com/w3c/csswg-drafts/pull/13190/files
--
GitHub Notification of comment by mstensho
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11395#issuecomment-3627196161 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 8 December 2025 14:27:51 UTC