Skip to content

iframe content does not resize when iframe element is resized #8301

Closed

Description

@paulrouget
<style>
  iframe {
    border: 1px solid black;
    height: 200px;
  }
</style>

<iframe width='200' src="data:text/html,<style>html{background:red}</style>"></iframe>

<script>
  setTimeout(() => {
    document.querySelector('iframe').width = 400;
  }, 2000);
</script>

Activity

  1. eefriedman commented on Nov 3, 2015

    @eefriedman
    Contributor

    (This works correctly from the perspective of content; it just doesn't get drawn on the screen correctly.)

    I thought this was a duplicate, but I can't seem to find it.

  2. paulrouget commented on Nov 3, 2015

    @paulrouget
    ContributorAuthor

    It's a regression. Started with 1a494b1.

    /cc @mrobinson

  3. paulrouget commented on Nov 3, 2015

    @paulrouget
    ContributorAuthor

    I thought this was a duplicate, but I can't seem to find it.

    Maybe you were thinking of issue #8081 where iframe content is not drawn after navigation.

  4. mrobinson commented on Nov 3, 2015

    @mrobinson
    Member

    @paulrouget I've confirmed this and have a fix locally. I think the actual culprit is #7423. That would not be too surprising because it was a major rework to fix an architectural flaw. I'll try to get a PR ready today.

  5. added a commit that references this issue on Nov 3, 2015
    261246e
  6. added 3 commits that reference this issue on Nov 4, 2015
    4b31292
    4052ddd
    dc159d0
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