layout/reftests/image/image-srcset-basic-selection-0.6x.html
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Fri, 13 Dec 2019 16:58:19 +0000
changeset 566829 64d928545a59e2fdad41a3d5c77b28799fb5b262
parent 236631 60ce1e142f90447d72f6455899f953b05198132d
permissions -rw-r--r--
no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD cy -> c42e3eb98496 gn -> ec27e9003118 ia -> 8f8bfed06d40 id -> 0ca741b5232d it -> 06cf7de87911 nb-NO -> ba337cfcff29 nl -> 4f3ec8258428 sl -> 314dc9aaee2a zh-CN -> 4bff77d2e855


<!DOCTYPE html>
<html reftest-zoom="0.6" class="reftest-wait">
<head>

    <script type="application/javascript">
    // reftest-zoom is only applied at onload, so ensure the source-selection
    // has happened after that
    function clearWait() {
      document.documentElement.classList.remove("reftest-wait");
    }
    window.addEventListener("load", function() {
      setTimeout(function() {
        var img = document.querySelector("img");
        img.onload = clearWait;
        img.onerror = clearWait;
        img.src = img.src;
      }, 0);
    });
  </script>
</head>
<body>
  <img srcset="50.png 0.5x, 100.png 1x, 200.png 2x, 300.png 3x, 400.png">
  <p>Test basic loading of sourceset at different resolutions, including proper intrinsic size selection</p>
</body>
</html>