width: 3000px;
}
#targetDiv {
  width: 200px;
  height: 200px;
  overflow: scroll;
}

#innerDiv {
  width: 400px;
  height: 400px;
}
</style>

<body style="margin:0" onload=runTest()>
<div id="targetDiv">
  <div id="innerDiv">
  </div>
</div>
</body>
<script>
let invalid_scrollend_arrived = false;

function onInvalidScrollEnd(event) {
  invalid_scrollend_arrived = true;
}

let scroll_attr_change_variants = [
  {
    key: "subframe-scrollTop-smooth",
    target: targetDiv,
    behavior: "smooth",
    attribu