summaryrefslogtreecommitdiffstats
path: root/layout/reftests/transform-3d/opacity-preserve3d-5.html
blob: 37808dd5811c7f994903194365ac90677e4e3d95 (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
30
31
32
33
34
35
36
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style>
    .outer {
        transform-style: preserve-3d;
        width: 200px;
        height: 200px;
    }
    .inner {
        top: 50%;
        transform: translateY(-50%);
        background-color: green;
        position:relative;
        width: 200px;
        height: 200px;
    }
</style>
</head>
<body>

<div id="outer" class="outer">
    <div class="inner">
    </div>
</div>
<script>
  function doTest() {
    document.getElementById("outer").style.opacity = 0.7;
    document.documentElement.removeAttribute("class");
  }
    
  window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</body>
</html>