I'm trying to understand why the div rendered by the below markup cannot be scrolled vertically with the scroll wheel. It can be scrolled by dragging the scrollbar, or even by using the scroll wheel while hovered over the scrollbar.
If I remove either the overscroll-behavior: none or the overflow-x: hidden, the scrolling works as expected.
Why is this the case? Is there part of the CSS spec I can look at to better understand this interaction?
* {
overscroll-behavior: none;
}
.container {
width: 300px;
height: 100px;
overflow: auto;
}
.content {
height: 2000px;
background: red;
overflow-x: hidden;
}
<div class="container">
<section class="content"></section>
</div>