summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/culling/clear-fixed-iframe.html
blob: 4bfd87e1917923c20d238b233d9b59fa75a29418 (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><head><title>Compositor Iframe Sadface</title>
<style>
body { margin: 0; padding: 0; }
.composited {
  transform: translateZ(0);
  background-color: green;
  position:fixed;
  left:0; top:0; right:0; bottom:0;
}
iframe {
  position:fixed;
  left: 0; top: 0;
  width:100%;
  height: 100%;
  border:0;
}
</style>
<script type="text/javascript">
  if (window.testRunner) {
    testRunner.dumpAsTextWithPixelResults();
  }
</script>
</head>

<body>
<div class="composited"></div>

<!-- You should see a light green box filling the top/left of the window, inside a darker green background.
     If the "glass" in the iframe is considered opaque, then drawing errors will occur and tiles become black
     (light gray with the glass).
  -->
<iframe src="resources/clear-fixed-iframe-content.html" frameborder="0"></iframe>
</body>

</html>