Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel=author href="mailto:jarhar@chromium.org">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=host>
<template shadowrootmode=open>
<dialog>
<div>inside shadowroot</div>
<slot></slot>
</dialog>
</template>
<div>slotted</div>
</div>
<script>
document.getElementById('host').shadowRoot.querySelector('dialog').showModal();
test(() => {
assert_true(window.find('inside shadowroot'));
}, 'Text inside a dialog inside a shadowroot should be findable.');
test(() => {
assert_true(window.find('slotted'));
}, 'Text slotted into a dialog which is inside a shadowroot should be findable.');
</script>