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/li-layout-after-attachshadow-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<title>Layout for li elements after attachShadow should not crash</title>
<div id="host">
<li></li>
</div>
<script>
host.offsetWidth;
requestAnimationFrame(() => {
host.attachShadow({mode: 'open'});
document.documentElement.classList.remove('test-wait');
});
</script>