Skip to content

Implement Document#{elementFromPoint,elementsFromPoint}. #8666

Closed

Description

@Ms2ger

Spec: https://drafts.csswg.org/cssom-view/#dom-document-elementsfrompoint.
Test: tests/wpt/web-platform-tests/cssom-view/elementFromPoint.html, tests/wpt/web-platform-tests/cssom-view/elementsFromPoint.html.
Code: components/script/dom/document.rs, components/script/dom/webidls/Document.webidl.

This will probably need to call hit_test or get_nodes_under_mouse. It's likely those functions are not quite correct; fixing that is out of scope for this issue.

Activity

  1. added
    A-content/dom
    E-less-complex
    I-enhancement
    on Nov 24, 2015
  2. luthfianto commented on Nov 24, 2015

    @luthfianto
    Contributor

    I would like to try this, but can I ask you during the development?

  3. luthfianto commented on Nov 24, 2015

    @luthfianto
    Contributor

    By the way, where is the code/variable for getting viewport height?

  4. Ms2ger commented on Nov 24, 2015

    @Ms2ger
    ContributorAuthor

    I'm afraid this is not code I know well, but feel free to join the IRC channel and we can try to help you out.

  5. added
    C-assigned
    on Nov 24, 2015
  6. added 2 commits that reference this issue on Jan 15, 2016
  7. added 2 commits that reference this issue on Feb 4, 2016
  8. added 4 commits that reference this issue on Feb 26, 2016
  9. KiChjang commented on Mar 3, 2016

    @KiChjang
    Contributor

    Fixed by #8932.

  10. jdm commented on Mar 3, 2016

    @jdm
    Member

    We should file a new issue for elementsFromPoint, since it's now possible to implement safely.

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

    A-content/domC-assignedE-less-complexI-enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions