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

position:fixed elements painted outside of iframe #203

Closed
paulrouget opened this issue Feb 26, 2016 · 2 comments
Closed

position:fixed elements painted outside of iframe #203

paulrouget opened this issue Feb 26, 2016 · 2 comments

Comments

@paulrouget
Copy link
Collaborator

@paulrouget paulrouget commented Feb 26, 2016

a.html:

<style>
  body {
    margin: 0;
  }
  iframe {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 200px;
    height: 200px;
  }
</style>
<iframe src="b.html"></iframe> 

b.html:

<style>
  div {
    position: fixed;
    width: 100px;
    height: 100px;
    background: red;
    left: 0px;
    top: 0px;
  }
</style>
<body>
  <div></div>
  <h1>content</h1>
</body>

screen shot 2016-02-26 at 17 48 40

@glennw
Copy link
Member

@glennw glennw commented Feb 26, 2016

Branches with fixed layer per iframe here:

https://github.com/glennw/webrender/tree/fixed-layers
https://github.com/glennw/webrender_traits/tree/fixed-layers

Needs a bit more testing before I open PRs, but feel free to test in your use case with them in the meantime if you like.

@glennw
Copy link
Member

@glennw glennw commented Mar 2, 2016

This got fixed in 4dea3fe

@glennw glennw closed this Mar 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.