Index: third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-mutation-assert.html |
diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-mutation-assert.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-mutation-assert.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e1aeae4d81d2c6aeddb8c702467712184ea20d64 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/sibling-mutation-assert.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<style> |
+ #a + #b * { color: pink } |
+</style> |
+<p>Should not assert/crash.</p> |
+<div id="p"> |
+ <div id="b"> |
+ <div></div> |
+ </div> |
+</div> |
+<script> |
+ test(() => { |
+ p.offsetTop; |
+ var a = document.createElement("div"); |
+ a.id = "a"; |
+ p.insertBefore(a, b); |
+ assert_true(true, "Reached end of insert without triggering assert."); |
+ }, "Scheduling sibling set with wholeSubtreeInvalid should not cause asserts."); |
+</script> |