Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/cssom/insert-dir-rule-in-iframe-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSSOM Test: Chrome crash inserting :dir rule in iframe</title>
<p>PASS if no crash.</p>
<iframe srcdoc='<!DOCTYPE html>
<style id="sheet"> </style>
<div id="host"></div>
<script>
let root = host.attachShadow({mode:"open"});
root.innerHTML = "<slot></slot>";
host.offsetTop;
host.innerHTML = "<span>Green</span>";
sheet.sheet.insertRule("html:dir(ltr) { color: green; }");
getComputedStyle(host).color;
</script>
'>
</iframe>