Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
paulrouget opened this issue Aug 19, 2015 · 2 comments

Comments

@paulrouget
Copy link
Contributor

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

@paulrouget paulrouget 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 Aug 19, 2015
@pcwalton
Copy link
Contributor

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

@pcwalton
Copy link
Contributor

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

@pcwalton pcwalton 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 Aug 19, 2015
pcwalton added a commit to pcwalton/servo that referenced this issue Aug 19, 2015
bors-servo pushed a commit that referenced this issue Aug 19, 2015
layout: Put iframes that form stacking contexts in the right place.

Improves eBay.

Closes #7282.

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7287)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants