summaryrefslogtreecommitdiffstats
path: root/layout/reftests/transform/dynamic-addremove-2.html
blob: b6718b29a7a3bc46d52c11c68bedec8614759f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html style="background: red">
  <div style="transform: translate3d(0, 0, 0); position: absolute;
              top: 0; left: 0; width: 100px; height: 100px">
    <div style="position: absolute">
      <div style="position: fixed; width: 100%; height: 100%; top: 0; left: 0;
                  background: green">
      </div>
    </div>
  </div>
  <script>
    onload = function() {
      document.body.offsetWidth;
      document.querySelector("div").style.transform = "none";
    }
  </script>
</html>