summaryrefslogtreecommitdiffstats
path: root/dom/media/test/reftest/reftest_img.html
blob: 3e55c264ec25add933cbdb5f4c4071cfd014df6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE HTML>
<html class="reftest-wait">
<head>
<meta charset='utf-8'>
</head>
<body>
<img id="e_img" style="position:absolute; left:0; top:0; max-width:100%">
<script>
(async () => {
  const params = new URLSearchParams(window.location.search);
  const src = params.get('src');
  src.defined;

  e_img.src = src;
  await e_img.decode()
  document.documentElement.removeAttribute('class');
})();
</script>
</body>
</html>