Bug 1383001: Crashtests for this and
bug 1383319. r?heycam
MozReview-Commit-ID: CDWKn1ygZ6S
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/1383001.html
@@ -0,0 +1,23 @@
+<!doctype html>
+<html class="reftest-wait">
+<div id="test" contenteditable>
+ <div id="first"></div>
+</div>
+<script>
+document.body.offsetTop;
+let anim = document.createElement('div');
+anim.animate({ color: ['red', 'green' ] }, 1000);
+first.appendChild(anim);
+
+let child = document.createElement('span');
+child.innerText = 'text';
+
+requestAnimationFrame(() => {
+ requestAnimationFrame(() => {
+ anim.appendChild(child);
+ test.appendChild(anim);
+ document.documentElement.className = "";
+ });
+});
+</script>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/1383319.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<style>
+ @keyframes anim {
+ to { background-color: green; }
+ }
+ .foo {
+ width: 100px;
+ height: 100px;
+ background: red;
+ animation: anim 10s ease;
+ }
+</style>
+<div id="test" contenteditable>
+</div>
+<script>
+document.documentElement.offsetTop;
+test.innerHTML = '<div class="foo">Some random element</div>';
+</script>
--- a/layout/style/crashtests/crashtests.list
+++ b/layout/style/crashtests/crashtests.list
@@ -180,8 +180,10 @@ load 1377053-1.html
load 1377256-1.html
load 1378064-1.html
load 1378814.html
load 1380800.html
load link-transition-before.html
load 1381682.html
load 1382672.html
load 1382710.html
+load 1383001.html
+load 1383319.html