w3c / w3c/webdriver

Pointer Actions should specify which viewport to reference

Open
#1,256 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Perform Actions
Dominant language
HTML
Stars
718
Forks
228
PR merge metrics
No merged PRs in 30d

Description

This came up from a PR we have for Pointer Actions. The only specific viewport reference in the spec is when we mention the browsers viewport for the move out of bounds error. Other than that we just use the term viewport without any reference as to which.

In our case it came up when executing pointer actions inside of an iframe whether it should use the browser viewport or the iframes viewport. There were no web platform tests that clarified which to use and the spec also doesn't clarify. When testing it appeared Firefox uses the iframes viewport.

We should consider using relative adjectives such as "current frames viewport" and add tests to validate that behavior for Actions.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Pointer Actions specification wording and the existing web platform tests, then compare browser-viewport and iframe-viewport behavior. Done means the specification identifies which viewport each reference means and tests validate the intended behavior for Actions.

Written by the indexing model from the issue text.

Assessment

Domain
documentation, testing-qa
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.