summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/cssom/removerule-invalidation-crash.html
blob: a83f43d5faf62338cfb442468a6e9e0e011c79f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSSOM - removeRule doesn't assert when removing a particular set of rules</title>
<link rel="help" href="https://drafts.csswg.org/cssom/#cssstylesheet">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1659718">
<style>
@media all {
  * { color: red; }

  #foobar { color: blue }
}
</style>
<script>
  document.documentElement.getBoundingClientRect();
  document.styleSheets[0].deleteRule(0);
</script>