Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body draggable="true" style="padding:20px">
Drag this input down quickly. Try multiple times. No errors should be reported.<br>
<input type=color>
<script>
document.body.addEventListener('dragenter', (e) => {
let target = e.relatedTarget;
while (target) {
assert_false(target instanceof ShadowRoot,'Drag events should not expose UA shadow roots');
// This console log can also cause DevTools crashes, so this is explicitly
// left in on purpose:
console.log(target);
target = target.parentNode;
}
});
</script>