Skip to content

hit test issue: 2 absolute divs create an opaque region for mouse events #8759

Closed

Description

@paulrouget
<iframe src="http://paulrouget.com" mozbrowser="true" style="display: block; width: 500px; height: 500px; border: 0"></iframe>
<div style="position: absolute; top: 200px; height: 2px; width: 500px; background: #0F0;"></div>
<div style="position: absolute; top: 400px; height: 2px; width: 500px; background: #0F0;"></div>

screenflow

Activity

  1. paulrouget commented on Dec 1, 2015

    @paulrouget
    ContributorAuthor
  2. self-assigned this
    on Dec 1, 2015
  3. added
    I-wrong
    on Dec 1, 2015
  4. mbrubeck commented on Dec 1, 2015

    @mbrubeck
    Contributor

    The two positioned divs are layerized into the same layer, so IOCompositor::find_topmost_layer_at_point correctly returns this layer. However, we don't actually want the topmost layer; we want the topmost element. If the point is in a region of the layer that contains no element, the hit test should fail. I'm not sure yet how to implement this without a round trip to the script task… /cc @pcwalton and @mrobinson

  5. mbrubeck commented on Dec 1, 2015

    @mbrubeck
    Contributor

    Note that this is only a problem when the layer is on top of an iframe, because that causes the compositor to send the mouse event message to the wrong document. Perhaps if this happens, the script task could detect it and forward the message to the child document.

  6. added 5 commits that reference this issue on Dec 2, 2015
    8d8d2c4
    de4ca13
    5ba2780
    4b300ab
    8eb19d1
  7. added a commit that references this issue on Dec 3, 2015
  8. added 2 commits that reference this issue on Dec 3, 2015
    8fe883e
    9551363
  9. added a commit that references this issue on Dec 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-gfx/compositingI-wrong

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions