play_none_img.resolve();" onerror="js_display_none_img.reject();">
  <script>
    document.getElementById("js_display_none").style = 'display:none;';
  </script>

  <!-- Later in the test we'll scroll to this div, instead of the above images,
       since due to them not being rendered, they cannot be scrolled to -->
  <div id="rendered_div"></div>
</body>

<script>
  const display_none_img = new ElementLoadPromise("display_none");
  const attribute_hidden_img = new ElementLoadPromise("attribute_hidden");
 