summaryrefslogtreecommitdiffstats
path: root/gfx/layers/apz/test/mochitest/helper_hittest_iframe_perspective_child.html
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/layers/apz/test/mochitest/helper_hittest_iframe_perspective_child.html')
-rw-r--r--gfx/layers/apz/test/mochitest/helper_hittest_iframe_perspective_child.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/gfx/layers/apz/test/mochitest/helper_hittest_iframe_perspective_child.html b/gfx/layers/apz/test/mochitest/helper_hittest_iframe_perspective_child.html
new file mode 100644
index 0000000000..37f20ad725
--- /dev/null
+++ b/gfx/layers/apz/test/mochitest/helper_hittest_iframe_perspective_child.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<script>
+ window.addEventListener("mousedown", event => {
+ let data = JSON.stringify({
+ type: "got-mouse-down",
+ coords: {
+ offsetX: event.clientX,
+ offsetY: event.clientY
+ }
+ });
+ window.parent.postMessage(data, "*");
+ });
+</script>