Re: [csswg-drafts] [css-page] Expose unprintable areas via CSS (#11395)

Hm, this `page-safe-margin` could also just be an alias for `margin`, but only to be honored if page margin safety is supported. E.g.

```css
  @page {
    margin: 1cm;
    page-safe-margin: 7px;
    page-margin-safety: clamp;
  }
```

`page-safe-margin` could also reset `page-margin-safety` to e.g. `clamp`, so that this would be enough:

```css
  @page {
    margin: 1cm;
    page-safe-margin: 7px;
  }
```

Feels like we're spending time (and clutter the platform ever so slightly) just because `@supports` doesn't support what we need it to support, though... That said, having a way of both setting margins and enabling safety with just one declaration seems pretty useful.

-- 
GitHub Notification of comment by mstensho
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11395#issuecomment-3283980000 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 12 September 2025 06:47:56 UTC