diff options
Diffstat (limited to 'testing/web-platform/tests/pointerevents/resources/iframe-touch-action-none-subframe.html')
-rw-r--r-- | testing/web-platform/tests/pointerevents/resources/iframe-touch-action-none-subframe.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/web-platform/tests/pointerevents/resources/iframe-touch-action-none-subframe.html b/testing/web-platform/tests/pointerevents/resources/iframe-touch-action-none-subframe.html new file mode 100644 index 0000000000..0a894d4401 --- /dev/null +++ b/testing/web-platform/tests/pointerevents/resources/iframe-touch-action-none-subframe.html @@ -0,0 +1,26 @@ +<html> + <style> + body { + width: 200px; + height: 150px; + padding: 0px; + margin: 0px; + background-color: lightgreen + } + </style> + <body></body> + <script> + function handler(e) { + window.top.postMessage({ + "type": "subframe-event", + "eventType": e.type + }, "*"); + } + + ["pointerup", "pointercancel"].forEach(eventType => { + document.body.addEventListener( + eventType, + handler); + }); + </script> +</html> |