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 #24553

Closed
wants to merge 1 commit into from
Closed

First functional tests for scrollbar-gutter #24553

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-widthand ::-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 classic scrollbars.

Spec:
https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants