Skip to content

iframe hit test is wrong #8080

Closed
Closed

Description

@paulrouget

In the following example, the content of the iframe turns blue on :hover. But moving the mouse at the top or the bottom of the iframe, the content of the iframe is considered not :hover (so staying red). I guess it's a hit test issue. This makes clicking on links impossible in a more complex layout.

a.html:

<style>
  body {
    margin: 0;
  }

  div {
    width: 10px;
    height: 160px;
    background: green;
  }

  iframe {
    display: block;
    width: 200px;
    height: 200px;
    border: 0;
  }

</style>

<div></div>

<iframe src="b.html" mozbrowser="true"></iframe>

b.html:

<style>
  html { background: red }
  html:hover { background: blue }
</style>

Activity

  1. jdm commented on Oct 19, 2015

    @jdm
    Member

    I didn't expect b.html to work outside of an iframe, but it did. Interesting.

  2. self-assigned this
    on Nov 16, 2015
  3. added
    C-assigned
    on Nov 16, 2015
  4. added 3 commits that reference this issue on Nov 17, 2015
    1baa2d7
    5b37dca
    10e700d
  5. added a commit that references this issue on Nov 25, 2015
    a61989e
  6. added 4 commits that reference this issue on Nov 25, 2015
    e8e7c3e
    fd3421b
    6bbd654
    8efc954
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-layout/uncategorizedC-assigned

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions