[csswg-drafts] [css-overflow] Scroll-padding and sticky position. (#7891)

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

== [css-overflow] Scroll-padding and sticky position. ==
Consider [this test-case](https://bug1795661.bmoattachments.org/attachment.cgi?id=9298884). Scroll down, then move the focus between the two `<input>` elements.

The scroll position jumps, which feels a bit unexpected, but it's sorta reasonable if you take `scroll-padding` to consider that rect invisible...

The desired behavior in that test-case is clear, but it's not clear to me if there's a use-case for the current behavior, I suspect there might be....

In any case, should the overflow spec skip applying padding when focusing sticky / fixedpos / abspos elements? Maybe only for the actual scroll container they're contained into? But that might be tricky...

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


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

Received on Monday, 17 October 2022 18:02:28 UTC