Bug 1342316 - A crashtest which has calc() method in translate3d function as base style of transform animation. r?heycam draft
authorHiroyuki Ikezoe <hikezoe@mozilla.com>
Fri, 28 Apr 2017 08:19:46 +0900
changeset 569873 7d86a97ac4f7730acdce1e45b509293bfbe68922
parent 569868 b126fda18c753e5e2f2086224ed23d17de0f9df7
child 626313 1571d75d82511cd8dcfb0fd6c0cb8fa2525b66cf
push id56291
push userhikezoe@mozilla.com
push dateThu, 27 Apr 2017 23:20:56 +0000
reviewersheycam
bugs1342316
milestone55.0a1
Bug 1342316 - A crashtest which has calc() method in translate3d function as base style of transform animation. r?heycam MozReview-Commit-ID: HZHctZyq2k4
layout/style/crashtests/1342316-1.html
layout/style/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/style/crashtests/1342316-1.html
@@ -0,0 +1,20 @@
+<!doctype html>
+<html class="reftest-wait">
+<title>calc() in translate3d as base style of transform animation</title>
+<style>
+#target {
+  width: 100px; height: 100px;
+  background: blue;
+  animation: anim 1s;
+  transform: translate3d(100px, calc(10px + 30%), 10px);
+}
+@keyframes anim {
+  to { transform: translate3d(0px, 0px, 0px); }
+}
+</style>
+<div id="target"></div>
+<script>
+document.getElementById("target").addEventListener("animationstart", () => {
+  document.documentElement.classList.remove("reftest-wait");
+});
+</script>
--- a/layout/style/crashtests/crashtests.list
+++ b/layout/style/crashtests/crashtests.list
@@ -165,9 +165,10 @@ load 1315889-1.html
 load 1315894-1.html
 load 1319072-1.html
 HTTP load 1320423-1.html
 load 1321357-1.html
 load 1328535-1.html
 load 1331272.html
 HTTP load 1333001-1.html
 pref(dom.animations-api.core.enabled,true) load 1340344.html
+load 1342316-1.html
 load 1356601-1.html