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

kizu has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-anchor-position] Should scroll-margin/padding have an effect on position-visibility: anchors-visible? ==
Was playing with the `position-visibility: anchors-visible` (https://drafts.csswg.org/css-anchor-position-1/#position-visibility), and I think it might be useful to take the scrollable area's `scroll-padding` or the anchor's `scroll-margin` into consideration (https://drafts.csswg.org/css-scroll-snap/#propdef-scroll-padding). An example: https://codepen.io/kizu/pen/BaedPEB

https://github.com/w3c/csswg-drafts/assets/177485/378c29d2-6785-477a-8f2f-13f5be9f265c

Here we can see how if we have some fixed element reducing the effective visible area of our scrollable container, we'd want to consider it for the `position-visibility`. Hooking it onto `scroll-margin` and `scroll-padding` sounds logical, as this is very similar to other similar cases like scrolling or snapping to the targeted element.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10410 using your GitHub account


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

Received on Sunday, 9 June 2024 15:06:06 UTC