summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/iframes/ancestor-clipping-layer.html
blob: 09fabc293827ab3dee8e6f5831ad627ca1018dfc (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
<!DOCTYPE HTML>
<html>
<head>
<style>
  .force-ancestor-clip {
    position: relative;
    padding-top: 1px;
    /* Needs to be above 50% for overlap to kick in. */
    padding-bottom: 55%;
    height: 0;
  }
  #wrapper {
    position:relative;
    width: 400px;
    margin:0 auto;
  }
  #main {
    width:875px;
    overflow:hidden;
    position:relative;
  }
  #content {
    width:400px;
  }
  .overflow-hidden {
    width:100%;
    overflow:hidden;
  }
  .float-right {
    float:right;
    width:425px;
  }
</style>
</head>
<body>
  <div id="wrapper">
    <div id="main">
      <div id="content">
        <div class="overflow-hidden">
          <div class="float-right">
            <div id="force-clip" class="force-ancestor-clip"></div>
            <iframe src="resources/ancestor-clipping-layer-subframe.html" width="300" height="150"></iframe>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>
</html>