Skip to content

content of transformed iframe is visible outside of the iframe #11358

Closed

Description

@paulrouget

follow up of #11151

<style>
  body {
    background: green;
  }
  iframe  {
    width: 100vw;
    height: 100vh;
    border: 10px solid red;
    transform: scale(.5);
  }
</style>
<iframe src="data:text/html,<body style='overflow: hidden; overflow-y: auto;'><div style='background: blue; height: 2000px'>"></iframe>

screen shot 2016-05-24 at 09 20 46

Activity

  1. nox commented on May 24, 2016

    @nox
    Contributor

    Interesting, on latest master on my computer it is less visible, just covering the border:
    capture d ecran 2016-05-24 a 14 20 42

  2. added
    C-has-manual-testcase
    on May 24, 2016
  3. paulrouget commented on May 25, 2016

    @paulrouget
    ContributorAuthor

    @nox I can't reproduce that. Can you still reproduce after the latest webrender updates?

  4. paulrouget commented on May 25, 2016

    @paulrouget
    ContributorAuthor

    @nox You probably didn't use webrender.

  5. nox commented on May 25, 2016

    @nox
    Contributor

    Indeed I didn't use webrender. Can reproduce now.

  6. nox commented on May 25, 2016

    @nox
    Contributor

    Could #11398 also be related?

  7. metajack commented on May 25, 2016

    @metajack
    Collaborator

    Pretty sure @pcwalton is on this.

  8. pcwalton commented on May 25, 2016

    @pcwalton
    Contributor

    Yup, this was on my agenda for today.

  9. added a commit that references this issue on May 26, 2016
    ce3ddd7
  10. added a commit that references this issue on May 26, 2016
    9e59aa5
  11. pcwalton commented on May 26, 2016

    @pcwalton
    Contributor

    Reopening since we need a wrup.

  12. pcwalton commented on Jun 1, 2016

    @pcwalton
    Contributor

    Fixed by #11398.

  13. Gozala commented on Jun 7, 2016

    @Gozala
    Contributor

    #11398 seems to fix specific example @paulrouget posted, but issue still remains if different css transforms are used. In browser.html we use translate3d that still seems to have this issue. I have update original code example to illustrate the issue:

    <style>
      body {
        background: green;
        perspective: 1000px;
        height: 100vh;
        width: 100vw;
      }
    
      iframe {
        width: 100%;
        height: 100%;
        border: 10px solid red;
        transform: translate3d(0px, 0px, -800px);
      }
    </style>
    <iframe src="data:text/html,<body style='overflow: hidden; overflow-y: auto;'><div style='background: blue; height: 2000px'>"></iframe>

    I also published it to jsbin so it's easy to reproduce:

    servo -w https://jsbin.com/cupoza
    

    P.S. If you scroll iframe content it will escape top boundary as well.

  14. Gozala commented on Jun 7, 2016

    @Gozala
    Contributor

    Never mind, it looks like we already have a bug #11650 on file the issue I posted above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-webrenderC-has-manual-testcase

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions