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

Conversation

@felipeerias
Copy link
Contributor

felipeerias commented Jul 10, 2020

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
@wpt-pr-bot wpt-pr-bot added the infra label Jul 10, 2020
@wpt-pr-bot wpt-pr-bot requested a review from jgraham Jul 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.