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

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

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

    iframe {
      position: absolute;
      width: 100px;
      height: 100px;
      border: none;
    }

    div {
      position: absolute;
      top: 0px;
      left: 50px;
      width: 100px;
      height: 100px;
      background-color: red;
    }
    </style>
  </head>
  <body>
    <iframe src="/cross-site/baz.com/title1.html" style="left:0px; z-index:-1"></iframe>
    <div style="z-index:0">I cover the left iframe but is covered by the right iframe.</div>
    <iframe src="/cross-site/bar.com/title1.html" style="left:100px; z-index: 1"></iframe>
  </body>
</html>