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

iframe hit test is wrong #8080

Closed
paulrouget opened this issue Oct 19, 2015 · 1 comment
Closed

iframe hit test is wrong #8080

paulrouget opened this issue Oct 19, 2015 · 1 comment
Assignees
Labels
A-layout/uncategorized C-assigned There is someone working on resolving the issue

Comments

@paulrouget
Copy link
Contributor

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>
@jdm
Copy link
Member

jdm commented Oct 19, 2015

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

@mbrubeck mbrubeck self-assigned this Nov 16, 2015
@mbrubeck mbrubeck added the C-assigned There is someone working on resolving the issue label Nov 16, 2015
mbrubeck added a commit to mbrubeck/servo that referenced this issue Nov 17, 2015
mbrubeck added a commit to mbrubeck/servo that referenced this issue Nov 20, 2015
mbrubeck added a commit to mbrubeck/servo that referenced this issue Nov 21, 2015
paulrouget pushed a commit to paulrouget/servo that referenced this issue Nov 25, 2015
bors-servo pushed a commit that referenced this issue Nov 25, 2015
Fix clip rect for iframes in hit testing code

Fixes #8080 r? @mrobinson

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8671)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Nov 25, 2015
Fix clip rect for iframes in hit testing code

Fixes #8080 r? @mrobinson

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8671)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Nov 25, 2015
Fix clip rect for iframes in hit testing code

Fixes #8080 r? @mrobinson

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8671)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this issue Nov 25, 2015
Fix clip rect for iframes in hit testing code

Fixes #8080 r? @mrobinson

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8671)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-layout/uncategorized C-assigned There is someone working on resolving the issue
Projects
None yet
Development

No branches or pull requests

3 participants