web-platform-tests / wpt

Test suites for Web platform specs — including WHATWG, W3C, and others
https://web-platform-tests.org/
Other
5.03k stars 3.12k forks source link

Add API to force mock scrollbars #42697

Open lukewarlow opened 1 year ago

lukewarlow commented 1 year ago

It's quite common for browsers to need internal web tests where the only missing functionality from WPT is some way to force a specific scrollbar implementation (often called mock).

Similar to https://github.com/web-platform-tests/wpt/issues/36422 this is especially useful to force a "classic" scrollbar.

This would be particularly useful for testing CSS Scrollbar Level 1 a bit more thoroughly.

gsnedders commented 1 month ago

Is this wanting to specifically use the various UA's mock scrollbars, or wanting to be able to be able to force either classic or overlay scrollbars?

lukewarlow commented 1 month ago

I guess it's probably forcing classic or overlay but I think the reason I suggested mock scrollbars is because some platform scrollbars don't have one or the other. E.g. mobile only has overlay.

gsnedders commented 1 month ago

Ah, that's true. I do wonder if the right option is to just have an option to force classic v. overlay scrollbars, and that can either be provided by the platform or by a mock as the implementer decides?