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

content / test / data / frame_tree / page_with_positioned_clipped_iframe.html [blame]

<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
    body {
      margin: 0px;
    }

    iframe {
      position: absolute;
      top: -50px;
      left: -50px;
      width: 200px;
      height: 200px;
      border: none;
    }

    div {
      position: absolute;
    }

    #clip {
      top: 50px;
      left: 50px;
      width: 100px;
      height: 100px;
      background-color: red;
      transform: TranslateX(10px);
      overflow: hidden;
    }
    </style>
  </head>
  <body>
    <div id="clip">
          <iframe src="/cross-site/baz.com/title1.html"></iframe>
    </div>
  </body>
</html>