summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/iframes/invisible-iframe.html
blob: 9b5cec9a5678554913528c22507b3e1d3f22895f (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>
  <style type="text/css" media="screen">
    iframe {
        border: 10px solid black;
        padding: 5px;
        height: 150px;
        width: 300px;
        -webkit-box-shadow: 0 0 20px black;
    }
    .box {
        height: 200px;
        width: 200px;
        margin: 10px;
        padding: 5px;
        background-color: blue;
        transform: translateZ(0);
        overflow:hidden;
    }
    .box:hover {
        transform: none;
    }
  </style>
</head>
<body>

    <!-- The invisible iframe should not set itself as the root layer. -->
    <div style="display: none;">
        <iframe src="resources/composited-subframe.html"></iframe>
    </div>
    <div class="box">
    </div>
</body>
</html>