Bug 1383001: Crashtests for this and bug 1383319. r?heycam draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sat, 22 Jul 2017 15:11:40 +0200
changeset 614220 2860c5b9c01f6213ae3403a3c1c558b5586d49c9
parent 614219 d39db44301707b46ab4c63889dc777d7af98264b
child 614221 e3fbce51902f7756a5b2199dfe81aff3449d5e0c
push id69955
push userbmo:emilio+bugs@crisal.io
push dateMon, 24 Jul 2017 09:26:39 +0000
reviewersheycam
bugs1383001, 1383319
milestone56.0a1
Bug 1383001: Crashtests for this and bug 1383319. r?heycam MozReview-Commit-ID: CDWKn1ygZ6S
layout/style/crashtests/1383001.html
layout/style/crashtests/1383319.html
layout/style/crashtests/crashtests.list
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