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

overflow issue: parent's transform not taken into account #177

Closed
paulrouget opened this issue Feb 5, 2016 · 0 comments
Closed

overflow issue: parent's transform not taken into account #177

paulrouget opened this issue Feb 5, 2016 · 0 comments

Comments

@paulrouget
Copy link
Collaborator

@paulrouget paulrouget commented Feb 5, 2016

<style>

  .green {
    background: green; 
    position: absolute;
    width: 100%;
    height: 100px;
    transform: translateX(-200px);
  }

  .red {
    background: red;
    position: absolute;
    width: 100px;
    height: 100px;
    right: -50px;
  }

</style>

<div class="green">
  <div class="red"></div>
</div>

screen shot 2016-02-05 at 08 59 49

^ non WR vs WR.

The red div is cut as if it was offscreen, even though its parent transform:translate makes it onscreen.

glennw pushed a commit that referenced this issue Feb 9, 2016
(This allows correct clipping for these cases when transforms are involved).

This is a partial fix for #177 (the other part relies on changes to layout).
glennw pushed a commit that referenced this issue Feb 9, 2016
(This allows correct clipping for these cases when transforms are involved).

This is a partial fix for #177 (the other part relies on changes to layout).
@glennw glennw closed this in 1662a95 Feb 10, 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
1 participant
You can’t perform that action at this time.