web-platform-tests / wpt

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

Add mechanism to simulate display cut-out #11718

Open RByers opened 6 years ago

RByers commented 6 years ago

Display cut-out behavior (like the iPhone X knotch) can't currently be tested in WPT today. Ideally we'd add a WebDriver command to simulate it. Related to #11717.

Since this is a pretty niche and straight-forward feature, this doesn't seem like anywhere near the biggest bang-for-the-buck for test automation to me. But I wanted to track it.

foolip commented 6 years ago

Is it sufficient to be able to test https://drafts.csswg.org/css-env/#safe-area-insets by defining arbitrary environment variables, or is there more to it?