1
0
Fork 0
firefox/testing/web-platform/tests/css/css-overflow/scroll-button-activation-without-scroller.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

36 lines
991 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>CSS Test: ::scroll-button() activation without scroller shouldn't crash</title>
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<style>
div::scroll-button(inline-start) {
content: "";
height: 100px;
width: 100px;
}
</style>
<div></div>
<script>
promise_test(async t => {
await new test_driver.Actions()
.pointerMove(50, 50)
.pointerDown()
.pointerUp()
.pointerDown()
.pointerUp()
.send();
const kTab = '\uE004';
const kEnter = '\uE007';
await new test_driver.Actions()
.keyDown(kTab)
.keyUp(kTab)
.keyDown(kEnter)
.keyUp(kEnter)
.send();
});
</script>