Skip to content

Stacking issue with iframe + overflow:hidden #8310

Closed

Description

@paulrouget

PR #8266 solves the stacking issue with overflow:hidden for regular elements, but with an iframe, stacking order is still wrong. The iframe element stacking level is ok (see its green border), but its content is not (blue square).

screen shot 2015-11-03 at 11 22 09

<style>

  .a {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 400px;
    height: 400px;
    overflow: hidden;
  }

  .b {
    position: absolute;
    left: 0;
    top: 0;
    width: 200px;
    height: 200px;
    background-color: red;
  }

  iframe {
    border: 10px solid green;
  }

</style>

<body>

  <div class="a">
    <iframe src="data:text/html,<style>body{background:blue}</style>"></iframe>
  </div>

  <div class="b">

  </div>
</body>

Activity

  1. added 2 commits that reference this issue on Nov 3, 2015
    5b3e953
    c1a38e2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions