summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/document-policy/experimental-features/resources/document-policy-image.html
blob: 4e5b919bd112f044cc3ec9e57afe05ae20f22ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<body>
<script>
window.addEventListener('load', function() {
  var img = document.createElement('IMG');
  img.setAttribute("src", "/document-policy/experimental-features/resources/image.jpg");
  img.addEventListener('load', function() {
    parent.postMessage({width: img.width, height: img.height}, '*');
  });
  document.body.appendChild(img);
});
</script>
</body>