summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/change-scale-wide-range.html
blob: ec41946cfdd1ea65352f75a3ae11371070b507fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html class="reftest-wait">
<title>Change scale to very big then back</title>
<link rel="author" title="Xianzhu Wang" href="mailto:wangxianzhu@chromium.org">
<link rel="help" href="https://crbug.com/1146393">
<link rel="match" href="change-scale-wide-range-ref.html">
<style>
#target {
  will-change: transform;
  transform-origin: 0 0;
  width: 200px;
  height: 200px;
  background: green;
  border: 10px solid blue;
}
</style>
<div id="target"></div>
<script>
requestAnimationFrame(() => {
  requestAnimationFrame(() => {
    target.style.transform = 'scale(100)';
    requestAnimationFrame(() => {
      target.style.transform = 'scale(1)';
      document.documentElement.removeAttribute('class');
    });
  });
});
</script>