Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-overflow/scroll-button-activation-without-scroller.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<title>CSS Test: ::scroll-button() activation without scroller shouldn't crash</title>
<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>