summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/backface-visibility/backface-visibility-simple.html
blob: 4f69daf224c9415c4ee1ae4a807a798ca5960e52 (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
<!DOCTYPE html>
<html>
<head>
  <style type="text/css" media="screen">
    .red {
        background-color: red;
    }

    .green {
        background-color: green;
    }
    div {
      height: 100px;
      width: 100px;
    }

    .backfaceVisible {
      transform: rotateY(180deg);
      -webkit-backface-visibility: visible;
    }

    .backfaceHidden {
      transform: rotateY(180deg);
      -webkit-backface-visibility: hidden;
    }
  </style>
</head>
<body>
  <!-- In the pixel results, two green squares should be visible. -->
  <div class="red">
    <div class="backfaceVisible green">
    </div>
  </div>
  <p>
  <div class="green">
    <div class="backfaceHidden red">
    </div>
  </div>
  <script>
  if (window.testRunner) {
    testRunner.dumpAsTextWithPixelResults();  // This is only useful as a pixel test.
    document.write("<span style='position:absolute; top:-5000px'>This test is only useful as a pixel test</span>");
  }
  </script>
</body>
</html>