Bug 68703 - MouseEvents need to take into account CSS transforms for correct PageX and PageY
Summary: MouseEvents need to take into account CSS transforms for correct PageX and PageY
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 68075
  Show dependency treegraph
 
Reported: 2011-09-23 10:27 PDT by John Knottenbelt
Modified: 2011-09-26 10:15 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Knottenbelt 2011-09-23 10:27:36 PDT
If the HTML element has a -webkit-transform property, the mouse events need to take this into account when calculating the pageX / pageY coordinates.
Comment 1 John Knottenbelt 2011-09-23 10:58:24 PDT
Please also see https://bugs.webkit.org/show_bug.cgi?id=67592
Comment 2 Simon Fraser (smfr) 2011-09-23 20:32:19 PDT
Why is the HTML element special? I don't think a transform on the HTML element should affect pageX/pageY.
Comment 3 John Knottenbelt 2011-09-26 01:14:12 PDT
Simon, I think that makes sense to me. If I understand correctly, we can mark this bug as invalid:

A css transform on the HTML element is no different to a css transform on any other content element, for example a <div>. We wouldn't expect a css transform on a <div> to affect the PageX and PageY mouse coordinates, and similarly the html element is no exception. A transform on the HTML element changes the coordinates of the top left corner of the HTML element, but not the document itself. PageX and PageY coordinates are relative to the top-left corner of the document.
Comment 4 Simon Fraser (smfr) 2011-09-26 10:15:35 PDT
Sounds good.