summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/cssom/removerule-invalidation-crash.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/cssom/removerule-invalidation-crash.html')
-rw-r--r--testing/web-platform/tests/css/cssom/removerule-invalidation-crash.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/cssom/removerule-invalidation-crash.html b/testing/web-platform/tests/css/cssom/removerule-invalidation-crash.html
new file mode 100644
index 0000000000..a83f43d5fa
--- /dev/null
+++ b/testing/web-platform/tests/css/cssom/removerule-invalidation-crash.html
@@ -0,0 +1,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>