vh;"></div>
<div id="below-viewport-img-container"></div>

<script>
const image_path = location.origin + '/html/semantics/embedded-content/the-img-element/resources/image.png';

promise_test(async t => {
  const eager_image_promise = new Promise((resolve, reject) => {
    const img = new Image();
    img.onload = resolve;
    img.onerror = e => { reject(new Error("The img should not fail to load")) };
    img.src = image_path;
  });

  await eager_image_promise;

  // At this point, the image fetched eagerl