Re: [csswg-drafts] [css-paged-media] Should position:fixed elements get repeated on every page? (#12481)

Note that, according to the spec, this can already be fixed by setting `box-decoration-break` to `clone` on the element with the padding. This forces the padding to be repeated on every page. It currently works in Chrome, but doesn't in Firefox. And the Firefox devtools tell me that that property isn't yet supported in Safari at all.

In theory, the header in the example you provided would work better with `position: sticky`, which doesn't cover up any content by default. Though using `position: fixed` and then some hack to not cover the content seems very common, given that `fixed` has been around for much longer than `sticky`.

I agree that a property to control this could be nice, but maybe very niche.
Any use-cases that'd have might be better served by stuff like [page margin boxes](https://drafts.csswg.org/css-page/#margin-boxes) or [footnotes](https://www.w3.org/TR/css-gcpm-3/#footnotes).

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


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

Received on Sunday, 31 August 2025 16:18:48 UTC