diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-scoping/chrome-1492368-crash.html')
-rw-r--r-- | testing/web-platform/tests/css/css-scoping/chrome-1492368-crash.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-scoping/chrome-1492368-crash.html b/testing/web-platform/tests/css/css-scoping/chrome-1492368-crash.html new file mode 100644 index 0000000000..04d48ef215 --- /dev/null +++ b/testing/web-platform/tests/css/css-scoping/chrome-1492368-crash.html @@ -0,0 +1,17 @@ +<!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> |