1
0
Fork 0
firefox/testing/web-platform/tests/css/css-scoping/chrome-1492368-crash.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

17 lines
479 B
HTML

<!DOCTYPE html>
<title>Chrome crash re-assigning to slots with display:none slot</title>
<link rel="help" href="https://crbug.com/1492368">
<div id="host">
<span id="slotted" style="display:none"></span>
</div>
<script>
let root = host.attachShadow({mode:"open"});
root.innerHTML = `
<slot></slot>
<slot name="s1" style="display:none"></slot>
`;
host.offsetTop;
slotted.setAttribute("slot", "s1");
slotted.style.color = "green";
host.offsetTop;
</script>