croller">
  <div id="content"></div>
</div>
<div id="block1" tabindex="-1">abc</div>

<script>

// Tests that a focused element doesn't become the
// priority candidate of the subscroller

promise_test(async function() {
  var scroller = document.querySelector("#scroller");
  var focusElement = document.querySelector("#block1");
  focusElement.focus();
  scroller.scrollBy(0,150);
  document.scrollingElement.scrollBy(0,100);
  await new Promise(resolve => {
     document.addEventListener("scroll", () => step