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

The CSS Working Group just discussed `[css-anchor-position] Should scroll-margin/padding have an effect on position-visibility: anchors-visible?`, and agreed to the following:

* `RESOLVED: the 'anchors-visible' value takes 'scroll-padding' and 'scroll-margin' into account for determining if the anchor is visible`

<details><summary>The full IRC log of that discussion</summary>
&lt;TabAtkins> kizu: rn when we use position-vis:anchors-visible for an anchor in a container, it hides when the anchor scrolls outside the scrollport<br>
&lt;TabAtkins> kizu: i think it would be useful to account for scroll-margin and scroll-padding for this<br>
&lt;TabAtkins> kizu: usual case for these properties is you ahvea  sticky element or header floating over the scroller.<br>
&lt;TabAtkins> kizu: you probably want to treat the anchor as hidden when it's under that area<br>
&lt;TabAtkins> astearns: makes sense to me<br>
&lt;TabAtkins> TabAtkins: agreed<br>
&lt;TabAtkins> proposed: the 'anchors-visible' value takes 'scroll-padding' and 'scroll-margin' into account for determining if the anchor is visible<br>
&lt;TabAtkins> astearns: questions?<br>
&lt;TabAtkins> astearns: objections?<br>
&lt;TabAtkins> RESOLVED: the 'anchors-visible' value takes 'scroll-padding' and 'scroll-margin' into account for determining if the anchor is visible<br>
&lt;TabAtkins> kizu: i'll spend some more time on scroll-padding/margin when using nested scrollers, no interop.<br>
&lt;TabAtkins> astearns: yeah, assume WPT woudl only be testing single scrollers for simplicity<br>
</details>


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


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

Received on Thursday, 3 April 2025 18:50:49 UTC