Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /shadow-dom/crashtests/editing-shadow-overflow-scroll-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>Editing contenteditable with overflow scroll in shadow DOM should not crash</title>
<div id="host">
<div style="overflow:scroll">
<div contenteditable></div>
</div>
</div>
<script>
const root = host.attachShadow({mode: "open"});
root.innerHTML = `
<div style="overflow:scroll">
<div contenteditable></div>
<slot></slot>
</div>
`;
</script>