Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-overflow] Scroll-padding and sticky position. #7891

Open
emilio opened this issue Oct 17, 2022 · 1 comment
Open

[css-overflow] Scroll-padding and sticky position. #7891

emilio opened this issue Oct 17, 2022 · 1 comment

Comments

@emilio
Copy link
Collaborator

emilio commented Oct 17, 2022

Consider this test-case. 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...

@hiikezoe
Copy link

this issue makes me suspect a similar case happens with scroll-snap-align.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants