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

First functional tests for scrollbar-gutter #24554

Closed
wants to merge 1 commit into from
Closed

First functional tests for scrollbar-gutter #24554

wants to merge 1 commit into from

Conversation

felipeerias
Copy link
Contributor

Tests for the values auto, stable and always of the scrollbar-gutter property, using classic scrollbars.

Spec: https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property

The basic test works by comparing the size of the container and contained elements, which should be the same unless a scrollbar gutter is being shown.

It uses scrollbar-width and ::-webkit-scrollbar to ensure that the scrollbars are of the "classic" kind. Testing scrollbar-gutter with overlay scrollbars will probably require browser-specific tests, since there isn't a cross-platform way to ensure the presence of overlay scrollbars.

Tests for the values "auto", "stable" and "always" of the
scrollbar-gutter property with custom classic scrollbars.

Spec:
https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property
@aethanyc
Copy link
Contributor

Is this PR still needed? It seems the tests are already added via other PRs.
https://wpt.fyi/results/css/css-overflow?label=master&label=experimental&aligned&q=scrollbar-gutter

@felipeerias
Copy link
Contributor Author

@aethanyc You are right, this PR is no longer needed.

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

Successfully merging this pull request may close these issues.

None yet

4 participants