Skip to content

Commit 22e8627

Browse files
author
Simon Pieters
committed
[cssom-view] Ignore transforms for MouseEvent#offsetX/Y. https://www.w3.org/Bugs/Public/show_bug.cgi?id=15430
1 parent 3a5f50c commit 22e8627

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

cssom-view/Overview.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1571,15 +1571,17 @@ <h2 id="extensions-to-the-mouseevent-interface"><span class="secno">10 </span>Ex
15711571

15721572
<ol>
15731573
<li><p>If the event's <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#dispatch-flag">dispatch flag</a> is set, return the x-coordinate of the position where the event occurred relative to the
1574-
origin of the <a href="#padding-edge">padding edge</a> of the target node and terminate these steps.
1574+
origin of the <a href="#padding-edge">padding edge</a> of the target node, ignoring the <a href="#transforms">transforms</a> that apply to the element and its ancestors, and terminate
1575+
these steps.
15751576
<li><p>Return the value of the event's <code title="dom-MouseEvent-pageX"><a href="#dom-mouseevent-pagex">pageX</a></code> attribute.
15761577
</ol>
15771578

15781579
<p>The <dfn id="dom-mouseevent-offsety" title="dom-MouseEvent-offsetY"><code>offsetY</code></dfn> attribute must follow these steps:
15791580

15801581
<ol>
15811582
<li><p>If the event's <a class="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#dispatch-flag">dispatch flag</a> is set, return the y-coordinate of the position where the event occurred relative to the
1582-
origin of the <a href="#padding-edge">padding edge</a> of the target node and terminate these steps.
1583+
origin of the <a href="#padding-edge">padding edge</a> of the target node, ignoring the <a href="#transforms">transforms</a> that apply to the element and its ancestors, and terminate
1584+
these steps.
15831585
<li><p>Return the value of the event's <code title="dom-MouseEvent-pageY"><a href="#dom-mouseevent-pagey">pageY</a></code> attribute.
15841586
</ol>
15851587

cssom-view/Overview.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,15 +1532,17 @@ <h2>Extensions to the <code title>MouseEvent</code> Interface</h2>
15321532

15331533
<ol>
15341534
<li><p>If the event's <span data-anolis-spec=dom>dispatch flag</span> is set, return the x-coordinate of the position where the event occurred relative to the
1535-
origin of the <span>padding edge</span> of the target node and terminate these steps.
1535+
origin of the <span>padding edge</span> of the target node, ignoring the <span>transforms</span> that apply to the element and its ancestors, and terminate
1536+
these steps.
15361537
<li><p>Return the value of the event's <code title=dom-MouseEvent-pageX>pageX</code> attribute.
15371538
</ol>
15381539

15391540
<p>The <dfn title=dom-MouseEvent-offsetY><code>offsetY</code></dfn> attribute must follow these steps:
15401541

15411542
<ol>
15421543
<li><p>If the event's <span data-anolis-spec=dom>dispatch flag</span> is set, return the y-coordinate of the position where the event occurred relative to the
1543-
origin of the <span>padding edge</span> of the target node and terminate these steps.
1544+
origin of the <span>padding edge</span> of the target node, ignoring the <span>transforms</span> that apply to the element and its ancestors, and terminate
1545+
these steps.
15441546
<li><p>Return the value of the event's <code title=dom-MouseEvent-pageY>pageY</code> attribute.
15451547
</ol>
15461548

0 commit comments

Comments
 (0)