cross-origin-subframe-masked-pointer-events-none.sub.html (1066B)
1 <!doctype html> 2 <html> 3 <head> 4 <script src="/resources/testdriver.js"></script> 5 <script src="/resources/testdriver-actions.js"></script> 6 <script src="/resources/testdriver-vendor.js"></script> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <script src="../resources/input-onmessage.js"></script> 10 <script src="../resources/pending-input-utils.js"></script> 11 <style> 12 .obscurer { 13 position: fixed; 14 top: 0px; 15 left: 0px; 16 width: 320px; 17 height: 180px; 18 pointer-events: none; 19 background-color: rgba(0, 0, 255, 0.25); 20 } 21 </style> 22 </head> 23 <body> 24 <div class="obscurer"></div> 25 <iframe src="http://{{hosts[][www1]}}:{{ports[http][0]}}/is-input-pending/resources/blank.html"></iframe> 26 <p>Ensure that a parent frame cannot detect events on a cross-origin subframe masked by a div with `pointer-events: none`.</p> 27 <script> 28 window.addEventListener('load', () => { 29 PendingInputUtils.testCannotAccessPendingInputAt(window, 10, 10, 'parent cannot detect events'); 30 }); 31 </script> 32 </body> 33 </html>