blob: 4c9d7530dc359719166e16dbd93ed0088c3ca7d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!DOCTYPE html>
<title>CSSOM Test: Chrome crash inserting :dir rule in iframe</title>
<link rel="help" href="https://crbug.com/1486351">
<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>
|