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-marker-inert-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Overflow Test: ::scroll-marker-group inertness applied to ::scroll-marker</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>
body { margin: 0; }
#scroller {
width: 100px;
height: 100px;
overflow-y: scroll;
scroll-marker-group: before;
}
#scroller::scroll-marker-group {
interactivity: inert;
height: 100px;
}
.item {
height: 100px;
background-color: lime;
}
.item::scroll-marker {
content: "X";
display: block;
width: 20px;
height: 20px;
}
#filler {
height: 400px;
}
</style>
<div id="scroller">
<div class="item"></div>
<div id="filler"></div>
<div id="target" class="item"></div>
</div>
<script>
promise_test(async t => {
await new test_driver.Actions()
.pointerMove(10, 30)
.pointerDown()
.pointerUp()
.send();
assert_equals(scroller.scrollTop, 0);
}, "::scroll-marker is inert because its ::scroll-marker-group is");
</script>