summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-animations/transform-animation-in-delay.html
blob: 0ed13934f4174c58483904ba9afe67c52ac16cbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html class="reftest-wait reftest-no-flush">
<style>
@keyframes anim {
  from { transform: scale(2); }
  to { transform: scale(2); }
}
div {
  background: green;
  width: 100px;
  height: 100px;
  animation: anim 100s 100s;
  transform: translateX(100px);
}
</style>
<div></div>
<script>
requestAnimationFrame(() => {
  document.documentElement.classList.remove('reftest-wait');
});
</script>
</html>