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

Should scrollMargin be applied to display:hidden containers? #521

Closed
szager-chromium opened this issue Mar 2, 2024 · 2 comments
Closed
Assignees

Comments

@szager-chromium
Copy link
Collaborator

According to the spec, scrollMargin is applied only to scrollPorts, and display:hidden does not qualify as a scrollport because it doesn't "allow the user to scroll clipped parts of its scrollable overflow area into view". But many of the scroll-margin WPT use overflow:hidden with the expectation that scrollMargin will be applied.

@tcaptan-cr
Copy link
Collaborator

Scrollports should allow for script scrolling as well. The intent with scrollMargin was support both user and script scrolling.

@tcaptan-cr
Copy link
Collaborator

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

No branches or pull requests

2 participants