Closed Bug 1651906 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 24553 - First functional tests for scrollbar-gutter

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 24553 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/24553
Details from upstream follow.

Felipe Erias <felipeerias@gmail.com> wrote:

First functional tests for scrollbar-gutter

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.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.