summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/1342316-1.html
blob: 091c6e8261907c1cf40d8aad7ba8425575d2f8f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>