web-platform-tests / rfcs

web-platform-tests RFCs
74 stars 63 forks source link

Minimum viewport size #188

Open annevk opened 3 months ago

annevk commented 3 months ago

As discussed in https://github.com/web-platform-tests/wpt/pull/45161 and prior to that in https://github.com/web-platform-tests/wpt/pull/7644 and elsewhere there's minimum viewport size assumptions. As @jgraham points out we should probably put those in wptrunner.

gsnedders commented 3 months ago

For reftests we expect exactly an 800x600 viewport, and I think we should probably just make that assumption for all tests.

jgraham commented 3 months ago

Requiring an exact size means that non-reftests have the same problem on mobile that reftests have i.e. you either can't run them or have to run in some very nonstandard viewport.

I tend to think that for testharness tests we want to discourage writing tests that depend on the exact dimensions, but it probably does make sense to ensure some minimum dimensions so that tests have something reasonable to rely on.