summaryrefslogtreecommitdiffstats
path: root/devtools/client/responsive/test/browser/touch_event_target.html
blob: bac3cfbf1e64181e00f477eee0c8a6c6dcdeaddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<script>
'use strict';

document.documentElement.onclick = (e) => {
  window.top.postMessage({ x: e.clientX, y: e.clientY, screenX: e.screenX, screenY: e.screenY }, "*");
};

window.onload = () => {	
  window.top.postMessage({ ready: true }, "*");
}
</script>
<style>
body {
	margin: 0;
  background: green;
}
</style>
<body></body>