Bug 104509 - [Shadow DOM] The MouseEvent offsetX and offsetY attributes must return the coordinates relative to the origin of the padding edge of the relative target after retargeting.
Summary: [Shadow DOM] The MouseEvent offsetX and offsetY attributes must return the co...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: UI Events (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Hayato Ito
URL:
Keywords:
Depends on:
Blocks: 59805
  Show dependency treegraph
 
Reported: 2012-12-09 22:20 PST by Hayato Ito
Modified: 2013-01-08 20:43 PST (History)
2 users (show)

See Also:


Attachments
Add a test (4.69 KB, patch)
2013-01-08 18:37 PST, Hayato Ito
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hayato Ito 2012-12-09 22:20:21 PST
Shadow DOM spec is updated:
http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#event-dispatch
Section 5.5.
> The MouseEvent offsetX and offsetY attributes must return the coordinates relative to the origin of the padding edge of the relative target

We should implement this behavior.
Comment 1 Hayato Ito 2013-01-08 18:37:15 PST
Created attachment 181818 [details]
Add a test
Comment 2 Hayato Ito 2013-01-08 19:08:32 PST
I've filed a bug for the spec about when MouseEvent offsetX and offsetX should be calculated.
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20615

Anyway, this patch itself is innocent and safe to land, I think.
Comment 3 WebKit Review Bot 2013-01-08 20:43:03 PST
Comment on attachment 181818 [details]
Add a test

Clearing flags on attachment: 181818

Committed r139153: <http://trac.webkit.org/changeset/139153>
Comment 4 WebKit Review Bot 2013-01-08 20:43:06 PST
All reviewed patches have been landed.  Closing bug.