- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 06 Aug 2025 16:53:23 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-page][css-env] Expose unprintable areas via CSS`, and agreed to the following: * `RESOLVED: Don't use env() for this. Use an @page descriptor roughly as proposed by dholbert; work out details in the issue.` <details><summary>The full IRC log of that discussion</summary> <fantasai> TabAtkins: Proposal to add new env() variables for the unprintable area of the page<br> <fantasai> TabAtkins: They will be zero on a normal screen display<br> <fantasai> TabAtkins: But when printing, they would show how far you need to be to ensure stuff is printed<br> <fantasai> TabAtkins: There seems to be overall agreement that this is fine. Some amount of fingerprinting concern, but since only shows up when you're printing less concern.<br> <fantasai> dholbert: Last few comments between me and Morten is that we don't want to use environment variable<br> <fantasai> dholbert: because you can't know that when preparing, depending on how it gets printed<br> <fantasai> dholbert: If you tell them there's a half-inch margin, and they are printing onto some other size of paper and are scaling things down<br> <fantasai> dholbert: then you are in the other printer<br> <fantasai> s/other printer/unprintable area/<br> <florian> q+<br> <fantasai> dholbert: so I suggested a different approach<br> <fantasai> dholbert: which is to clamp the margins<br> <fantasai> dholbert: But exposing the numeric value is potentially a footgun<br> <astearns> ack florian<br> <fantasai> florian: I followed why an env() variable wouldn't be appropriate. Didn't follow what you're proposing instead.<br> <fantasai> florian: There are cases where unprintable area differs on which side.<br> <fantasai> florian: It's not generally knowable what it is. But sometimes it is<br> <fantasai> florian: Would your proposal allow for that?<br> <fantasai> dholbert: Yes<br> <fantasai> dholbert: Simple way is to use the largest unprintable as if it's the distance on all sides<br> <fantasai> dholbert: so can have a simple keyword for that<br> <fantasai> dholbert: or could ask for per-side behavior<br> <fantasai> dholbert: I suggested 'enforce-safe-margin' descriptor, that UA could take into account after it knows the requested page size and the output paper size<br> <fantasai> -> https://github.com/w3c/csswg-drafts/issues/11395#issuecomment-3029150700<br> <fantasai> dholbert: Idea is to floor the author's specified margin with whatever info we get from the printer<br> <fantasai> dholbert: Author could choose whether to apply same increase to all 4 sides, or each individually, or add it into already requested margin<br> <fantasai> dholbert: Morten and I are not sure that we can know each side surely, because e.g. for duplex printing might not know<br> <fantasai> dholbert: So might be a printer-specific detail.<br> <fantasai> florian: In general case that we won't always know, but in some cases we can<br> <fantasai> florian: If you don't know, should assume they're all the same<br> <fantasai> astearns: sounds like we do prefer the descriptor over env(). Should we resolve on using a descriptor and take it back to the issue?<br> <fantasai> PROPOSED: Don't use env() for this. Use an @page descriptor roughly as proposed by dholbert; work out details in the issue.<br> <fantasai> RESOLVED: Don't use env() for this. Use an @page descriptor roughly as proposed by dholbert; work out details in the issue.<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-3160889891 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 6 August 2025 16:53:24 UTC