Skip to content

Add an option to compute pointerMove coordinates from element top-left #1171

Open
@juangj

Description

@juangj

I was talking to somebody about this at TPAC -- I'm pretty sure it was @shs96c, and maybe @AutomatedTester was also there -- but we didn't talk about it during the meeting proper, so I don't think it's in the minutes, and we don't seem to have written it down anywhere else.

The basic proposal was to create a way, for pointerMove actions, to specify that the x and y coordinates should be computed relative to the top-left corner of the element rather than the in-view center point of the element. The main benefit is to provide an easier transition from the Selenium JSON wire protocol, where the existing /moveto command uses the top-left corner.

This was also mentioned in mozilla/geckodriver#789 (comment) but I don't believe a spec issue was raised at that time. The benefit raised in that thread is that coordinates relative to the top-left are much more intuitive for, e.g., canvas elements.

(To be clear: I am not proposing that this be in the Level 1 spec, especially at this point in the process.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions