- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Thu, 13 Nov 2025 07:58:39 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-page] Expose unprintable areas via CSS`. <details><summary>The full IRC log of that discussion</summary> <fantasai> foolip: Issue is unprintable areas<br> <fantasai> foolip: Original idea was using env() for safe areas<br> <fantasai> foolip: but a bit unreliable because not dependable depending on how you feed the paper<br> <fantasai> foolip: so only safe to do is to report the largest margin<br> <fantasai> foolip: So new proposal, where we have a descriptor on @page and margin boxes<br> <fantasai> foolip: and new alias for margin called safe-margin which would compute to larger of margin and safe margin<br> <fantasai> foolip: required to do fallback correctly<br> <florian> q+<br> <fantasai> foolip: 3 modes for this: current behavior (no compensation), clamp (largest of the margins), and add (add to existing margin)<br> <fantasai> foolip: Unsure what the use case for that is, but long discussion with morton + dholber led to that<br> <astearns> q+<br> <emilio> q+<br> <astearns> ack florian<br> <fantasai> florian: I agree that not reliably knowable where things are<br> <fantasai> florian: unsure that it's never knowable<br> <astearns> q-<br> <fantasai> florian: maybe we can have some flexibility, UA can say it knows<br> <astearns> q+ to ask whether there is prior art in print formatters to follow<br> <fantasai> florian: want to avoid limiting behavior in cases where we could use that knowledge<br> <fantasai> foolip: You could easily turn page-safe-margin into 4 longhands<br> <fantasai> foolip: but if nobody wants that, should we really do that, or add it only when someone claims to be able to support<br> <fantasai> florian: good enough<br> <astearns> ack emilio<br> <fantasai> Proposal -<br> <fantasai> Add a property / descriptor (the spec seems confused about this terminology) for @page and @page margin boxes:<br> <fantasai> Name: page-margin-safety<br> <fantasai> Value: none | clamp | add<br> <fantasai> Initial: none<br> <fantasai> (because I scribed it badly originally)<br> <fantasai> emilio: I'm not sure awhy we need the aliasing thing?<br> <fantasai> emilio: Adds a weird dependency<br> <fantasai> emilio: Shouldn't change the descriptor's margin value<br> <fantasai> foolip: margin by itself would apply to all environments, but if don't need it<br> <fantasai> emilio: We have @supports for that<br> <fantasai> foolip: for descriptors?<br> <fantasai> emilio: Yeah, we have a resolution for that<br> <fantasai> emilio: Consider you print multiple pages per sheet<br> <fantasai> emilio: wouldn't you wnat to use the normal margin rather than the page-margin-safety thing?<br> <fantasai> foolip: This would apply to the 3 edges that apply to the edges<br> <fantasai> foolip: Some explanation that it only applies to margins adjacent to an edge<br> <fantasai> foolip: also applies to page margin boxes<br> <fantasai> florian: there the margin only applies to the one or two sides at the edge of the paper<br> <fantasai> emilio: but 1cm in the page... the page would be scaled down<br> <fantasai> foolip: that's why we moved away from env() as a solution<br> <fantasai> foolip: with this you know both the page size and what the safety is<br> <fantasai> foolip: scaling doens't make it unsafe again<br> <fantasai> emilio: if we need both, the override should happen at used-value time<br> <ChrisL> [css-conditional-5] Feature detection for descriptors<br> <ChrisL> https://github.com/w3c/csswg-drafts/issues/2463<br> <fantasai> emilio: when you access .style ...<br> <fantasai> foolip: it is<br> <mstensho6> When there are multiple pages per sheet, the UA should already add whatever margin safety it needs around the set of pages, and `page-margin-safety` should do nothing in such cases.<br> <fantasai> emilio: Mortons proposal for aliasing margin is weird<br> <fantasai> astearns: I expect that there is prior art in print formatters for this<br> <fantasai> astearns: might be worth checking what it is<br> <mstensho6> Aliasing is for feature detection. If we can do it `@supports`, that would be much better.<br> <astearns> ack fantasai<br> <astearns> ack astearns<br> <Zakim> astearns, you wanted to ask whether there is prior art in print formatters to follow<br> <florian> q?<br> <fantasai> fantasai: page-margin-safety seems good<br> <fantasai> fantasai: page-safe-margin seems problematic, just use @supports<br> <fantasai> florian: [something about individual cases]<br> <fantasai> fantasai: if we're taking the max, we take the max always. If we want individual controls, we can add them<br> <fantasai> fantasai: Might want symmetric all around. Or per axis. or each side individually. We can add keywords for these.<br> <dholbert> (I'm not fully grokking the page-safe-margin proposal, partly because I'm sleepy. :) but I agree with fantasai I think; if we can use @supports, I'm happy with the earlier `page-margin-safety` descriptor)<br> <fantasai> astearns: Let's have morton change the proposal in response to feedback, and bring it back for adoption<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11395#issuecomment-3526201060 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 13 November 2025 07:58:40 UTC