summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/cssom/insert-dir-rule-crash.html
blob: 6cffa0c62a522f201f9dd531bc3774df46b7d394 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<title>CSSOM Test: Chrome crash inserting :dir rule</title>
<link rel="help" href="https://crbug.com/1486351">
<p>PASS if no crash.</p>
<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; }");
  document.fonts.size();
</script>