Skip to content

Commit ffdbc35

Browse files
committed
offsetTop/offsetLeft should be against border edge; not padding edge
1 parent 1748411 commit ffdbc35

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

cssom-view/Overview.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ <h3 id=offset-attributes><span class=secno>8.1 </span>The <code
993993

994994
<li>
995995
<p>Return the result of subtracting the y-coordinate of the top <a
996-
href="#padding-edge">padding edge</a> of the <code><a
996+
href="#border-edge">border edge</a> of the <code><a
997997
href="#htmlelementview-offsetparent">offsetParent</a></code> of
998998
<var>A</var> from the y-coordinate of the top <a
999999
href="#border-edge">border edge</a> of <var>A</var>, relative to the <a
@@ -1020,7 +1020,7 @@ <h3 id=offset-attributes><span class=secno>8.1 </span>The <code
10201020

10211021
<li>
10221022
<p>Return the result of subtracting the x-coordinate of the left <a
1023-
href="#padding-edge">padding edge</a> of the <code><a
1023+
href="#border-edge">border edge</a> of the <code><a
10241024
href="#htmlelementview-offsetparent">offsetParent</a></code> of
10251025
<var>A</var> from the x-coordinate of the left <a
10261026
href="#border-edge">border edge</a> of <var>A</var>, relative to the <a

cssom-view/Overview.src.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ <h3 id="offset-attributes">The <code title="">offsetParent</code>,
836836
<var>A</var> and stop this algorithm.</p></li>
837837

838838
<li><p>Return the result of subtracting the y-coordinate of the top
839-
<span>padding edge</span> of the <code>offsetParent</code> of
839+
<span>border edge</span> of the <code>offsetParent</code> of
840840
<var>A</var> from the y-coordinate of the top <span>border edge</span> of
841841
<var>A</var>, relative to the <span>initial containing block</span>
842842
origin.</p></li>
@@ -858,7 +858,7 @@ <h3 id="offset-attributes">The <code title="">offsetParent</code>,
858858
<var>A</var> and stop this algorithm.</p></li>
859859

860860
<li><p>Return the result of subtracting the x-coordinate of the left
861-
<span>padding edge</span> of the <code>offsetParent</code> of
861+
<span>border edge</span> of the <code>offsetParent</code> of
862862
<var>A</var> from the x-coordinate of the left <span>border edge</span>
863863
of <var>A</var>, relative to the <span>initial containing block</span>
864864
origin.</p></li>
@@ -1018,7 +1018,7 @@ <h2 id="the-mouseeventview-interface">The <code title="">MouseEventView</code> I
10181018
on getting, <em class="ct">must</em> return the y-coordinate of the
10191019
position where the event occurred relative to the origin of the
10201020
<span>initial containing block</span>.</p>
1021-
1021+
10221022
<p>The <dfn id="mouseeventview-clientx"><code>clientX</code></dfn>
10231023
attribute, on getting, <em class="ct">must</em> return the x-coordinate of
10241024
the position where the event occurred relative to the origin of the
@@ -1028,7 +1028,7 @@ <h2 id="the-mouseeventview-interface">The <code title="">MouseEventView</code> I
10281028
attribute, on getting, <em class="ct">must</em> return the y-coordinate of
10291029
the position where the event occurred relative to the origin of the
10301030
<span>viewport</span>.</p>
1031-
1031+
10321032
<p>The <dfn id="mouseeventview-offsetx"><code>offsetX</code></dfn>
10331033
attribute, on getting, <em class="ct">must</em> return the x-coordinate of
10341034
the position where the event occurred relative to the origin of the

0 commit comments

Comments
 (0)