summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/reflections/nested-reflection-size-change.html
blob: da80d1af7b03700e7ad4d356e2be6bccf20299b3 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <style>
  .outer {
    width: 140px;
    height: 270px;
    margin: 20px;
    border: 1px solid black;
    -webkit-box-reflect: right 10px;
  }
  
  .inner {
    margin: 10px;
    width: 100px;
    height: 100px;
    background-color: green;
    text-align: center;
    font-size: 50pt;
    -webkit-box-reflect: below 10px;
  }
  
  .bigger {
    width: 120px;
    height: 120px;
  }
  .composited {
    transform: rotate3d(0, 0, 1, 0);
  }
  </style>
  <script type="text/javascript" charset="utf-8">
    if (window.testRunner)
      testRunner.waitUntilDone();

    function doTest()
    {
      window.setTimeout(function() {
        document.getElementById('inner').className = 'inner composited bigger';
        if (window.testRunner)
          testRunner.notifyDone();
      }, 0);
    }
    window.addEventListener('load', doTest, false);
  </script>
  </head>
<body>
<p>The four green squares should all be lined up.</p>
  <div class="outer box composited">
    <div id="inner" class="inner box composited">
      1
    </div>
  </div>
</body>
</html>