Re: [csswg-drafts] [css-anchor-position] Should scroll-margin/padding have an effect on position-visibility: anchors-visible? (#10410)

Hmm, I could see that. However, we *really* just want the ability to declare that some element (like a sticky header) is an "obscuring" element, so that `scroll-padding:auto` can take that into account automatically based on the element's actual size/position. Right now, you have to guess at the size, which isn't great, and which is confusable with the *other* use-case, which is just providing a "comfortable margin" for the scrollable/pageable area (nothing to do with obscuring).

So I think we might want to (a) revert the resolution in this thread making us pay attention to scroll-padding/margin (so we'll go back to ignoring it), and (b) tag a new issue for scroll-snap-2/anchor-pos-2 about explicitly handling obscuring elements.

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


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

Received on Monday, 13 October 2025 20:52:28 UTC