summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/acid/acid2/reftest.html
blob: 80220cee7699343206378306a9e4c3fc0d048093 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!doctype html>
<html class=reftest-wait>
<title>Acid2 reftest</title>
<link rel="match" href="px-reference.html">
<script src="/common/reftest-wait.js"></script>
<style>
* {
  margin: 0;
  padding: 0;
  border: 0;
}
iframe {
  width: 400px;
  height: 300px;
}
</style>
<script>
function frameLoaded(frame) {
  let fwin = frame.contentWindow;
  let fdoc = frame.contentDocument;
  fdoc.querySelector("#top").scrollIntoView();
  takeScreenshot();
}
</script>
<iframe src="test.html" onload="frameLoaded(this)"></iframe>