Skip to content

[css-scrollbars] Interaction between scrollbar-color and scrollbar-width with ::-webkit-scrollbar #9856

@frivoal

Description

@frivoal

The css scrollbar spec has a section explicitly declaring ::-webkit-* scrollbar pseudos, and any other similar approach as out of scope: https://drafts.csswg.org/css-scrollbars/#out-of-scope

As documented in multiple previous issues, this is based on the consensus (including implementers) that this approach is a bad idea, and that shipping ::-webkit-* scrollbar pseudos in the first place was a bad idea / accident which we wish we had avoided.

However, the wpt test suite contains a significant number of tests about the interaction between scrollbar-color and scrollbar-width with ::-webkit-scrollbar.

It has 17 tests, for a total of 21 subtests

These tests are designed to pass if the user agent does not support ::-webkit-scrollbar at all (which is the case for Firefox), but they do expect a specific behavior if ::-webkit-scrollbar is supported, and that behavior is not specified anywhere as far as I can tell.

What should we do?

  • while keeping ::-webkit-scrollbar optional / deprecated, specify the expected interaction, maybe in css-scrollbars, maybe in https://compat.spec.whatwg.org/
  • delete the tests, to avoid constraining the behavior of a feature we're trying to get rid of
  • keep the tests, but mark them as .tentative
  • something else?

Metadata

Metadata

Assignees

No one assigned

    Labels

    TestedMemory aid - issue has WPT testscss-scrollbars-1Current Work

    Type

    No type

    Projects

    Status

    Wednesday afternoon

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions