Skip to content

iframe content not painted at the right coordinates if the iframe forms a stacking context #7282

Closed

Description

@paulrouget

iframe + absolute:position + z-index: iframe content is painted as if iframe's coordinates were top:0;left:0.

    <style>
    body {
      background: green;
    }
    iframe {
      top: 100px;
      left: 100px;
      border: 50px solid red;
      width: 400px;
      height: 400px;
      position:absolute;
      z-index:1;
    }
    </style>
    <iframe src="http://example.com"></iframe>

screen shot 2015-08-19 at 09 53 54

Activity

  1. changed the title [-]iframe not painted at the right coordinates if used with z-index[/-] [+]iframe content not painted at the right coordinates if used with z-index[/+] on Aug 19, 2015
  2. pcwalton commented on Aug 19, 2015

    @pcwalton
    Contributor

    I wonder if this is what's breaking eBay as well!

  3. pcwalton commented on Aug 19, 2015

    @pcwalton
    Contributor

    Also reproduces with transform: translateX(0px) instead of z-index, indicating that it's related to forming stacking contexts.

  4. changed the title [-]iframe content not painted at the right coordinates if used with z-index[/-] [+]iframe content not painted at the right coordinates if the iframe forms a stacking context[/+] on Aug 19, 2015
  5. added a commit that references this issue on Aug 19, 2015
    4df4d1a
  6. added a commit that references this issue on Aug 19, 2015
    ac4ca05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions