Bug 1328535 - 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:18:10 +0900
changeset 569872 e925e97143fd59d516120c34c4fb40ce11f886e3
parent 569868 b126fda18c753e5e2f2086224ed23d17de0f9df7
child 626312 ef8dbc0345a9fc3a7266ba42be87bea96bda575b
push id56290
push userhikezoe@mozilla.com
push dateThu, 27 Apr 2017 23:18:41 +0000
reviewersheycam
bugs1328535
milestone55.0a1
Bug 1328535 - 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