w3c / w3c/csswg-drafts

[cssom-view] CSSOM View Module redefines some MouseEvent attributes

Open
#4,084 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

cssom-view-1
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

MouseEvent already has all of screenX, screenY, clientX, clientY (which are also long type, which cssom-view is defining them as double).

But, they're redefined in the partial interface here:
https://drafts.csswg.org/cssom-view/#extensions-to-the-mouseevent-interface

Found while tweaking the idlharness in https://github.com/web-platform-tests/wpt/pull/12231

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 with the CSSOM View Module section titled “Extensions to the MouseEvent interface” and compare its screenX, screenY, clientX, and clientY definitions with the existing MouseEvent interface. Review the referenced WPT idlharness change for expected behavior; the work is done when the specification no longer creates conflicting or duplicate attribute definitions and the related IDL expectations agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.