Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<title>ShadowRoot hit tests</title>
<link rel="stylesheet" type="text/css"
</head>
<body>
<a target="_blank"
title="Test getChildAtPoint works for shadow DOM content"
Mozilla Bug 1027315
</a><br/>
<p id="display"></p>
<div id="content" style="display: none"></div>
<pre id="test">
</pre>
<script>
SimpleTest.waitForExplicitFinish();
window.onload = () => {
var iframe = document.createElement("iframe");
iframe.src = "test_shadowroot_subframe.html";
document.body.appendChild(iframe);
};
</script>
</body>
</html>