Skip to content

Commit 3ca2b99

Browse files
committed
x/y map to clientX/clientY
1 parent b73f4a8 commit 3ca2b99

2 files changed

Lines changed: 25 additions & 37 deletions

File tree

cssom-view/Overview.html

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727

2828
<h1 id=cssom-view-module>CSSOM View Module</h1>
2929

30-
<h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 26 February 2008</h2>
30+
<h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 29 February 2008</h2>
3131

3232
<dl>
3333
<dt>This version:
3434

3535
<dd><a
36-
href="http://www.w3.org/TR/2008/ED-cssom-view-20080226/">http://www.w3.org/TR/2008/ED-cssom-view-20080226/</a>
36+
href="http://www.w3.org/TR/2008/ED-cssom-view-20080229/">http://www.w3.org/TR/2008/ED-cssom-view-20080229/</a>
3737

3838
<dt>Latest version:
3939

@@ -914,12 +914,12 @@ <h2 id=the-mouseeventview-interface><span class=secno>6. </span>The <code
914914
<p>The <dfn id=mouseeventview-pagex><code>pageX</code></dfn> attribute, on
915915
getting, <em class=ct>must</em> return the horizontal coordinate, as
916916
number of CSS pixels, of the position where the event occurred relative to
917-
the origin of the canvas.
917+
the origin of the initial containing block.
918918

919919
<p>The <dfn id=mouseeventview-pagey><code>pageY</code></dfn> attribute, on
920920
getting, <em class=ct>must</em> return the y-coordinate, as number of CSS
921921
pixels, of the position where the event occurred relative to the origin of
922-
the canvas.
922+
the initial containing block.
923923

924924
<p>The <dfn id=mouseeventview-clientx><code>clientX</code></dfn> attribute,
925925
on getting, <em class=ct>must</em> return the x-coordinate, as number of
@@ -934,25 +934,20 @@ <h2 id=the-mouseeventview-interface><span class=secno>6. </span>The <code
934934
<p>The <dfn id=mouseeventview-offsetx><code>offsetX</code></dfn> attribute,
935935
on getting, <em class=ct>must</em> return the x-coordinate, as number of
936936
CSS pixels, of the position where the event occurred relative to the
937-
origin of the padding box of the target node.</p>
938-
<!-- this can cause negative values -->
937+
origin of the padding box of the target node.
939938

940939
<p>The <dfn id=mouseeventview-offsety><code>offsetY</code></dfn> attribute,
941940
on getting, <em class=ct>must</em> return the y-coordinate, as number of
942941
CSS pixels, of the position where the event occurred relative to the
943-
origin of the padding box of the target node.</p>
944-
<!-- this can cause negative values -->
942+
origin of the padding box of the target node.
945943

946944
<p>The <dfn id=mouseeventview-x title=mouseeventview-x><code>x</code></dfn>
947945
attribute, on getting, <em class=ct>must</em> return the value of <code><a
948-
href="#mouseeventview-pagex">pageX</a></code>.
946+
href="#mouseeventview-clientx">clientX</a></code>.
949947

950948
<p>The <dfn id=mouseeventview-y title=mouseeventview-y><code>y</code></dfn>
951949
attribute, on getting, <em class=ct>must</em> return the value of <code><a
952-
href="#mouseeventview-pagey">pageY</a></code>.
953-
954-
<p class=issue>Need to more carefully check the <code title="">x</code> and
955-
<code title="">y</code> members and likely the others too.
950+
href="#mouseeventview-clienty">clientY</a></code>.
956951

957952
<h2 id=rectangles><span class=secno>7. </span>Rectangles</h2>
958953

@@ -1077,8 +1072,9 @@ <h2 class=no-num id=references>References</h2>
10771072
<h2 class=no-num id=acknowledgments>Acknowledgments</h2>
10781073

10791074
<p>The editor would like to thank Alexey Feldgendler, David Vest, Hallvord
1080-
R. M. Steen, Morten Stenshorne, Robert O'Callahan, Simon Pieters, and
1081-
Tarquin Wilton-Jones for their contributions to this document.
1075+
R. M. Steen, Morten Stenshorne, Peter-Paul Koch, Robert O'Callahan, Simon
1076+
Pieters, and Tarquin Wilton-Jones for their contributions to this
1077+
document.
10821078

10831079
<p>Special thanks to the Microsoft employees who first implemented many of
10841080
the features specified in this draft, which were first widely deployed by

cssom-view/Overview.src.html

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -767,53 +767,44 @@ <h2 id="the-mouseeventview-interface">The <code title="">MouseEventView</code> I
767767
<p>The <dfn id="mouseeventview-pagex"><code>pageX</code></dfn> attribute,
768768
on getting, <em class="ct">must</em> return the horizontal coordinate, as
769769
number of CSS pixels, of the position where the event occurred relative to
770-
the origin of the canvas.</p>
770+
the origin of the initial containing block.</p>
771771

772772
<p>The <dfn id="mouseeventview-pagey"><code>pageY</code></dfn> attribute,
773773
on getting, <em class="ct">must</em> return the y-coordinate, as number of
774774
CSS pixels, of the position where the event occurred relative to the
775-
origin of the canvas.</p>
775+
origin of the initial containing block.</p>
776776

777-
<p>The <dfn id="mouseeventview-clientx"><code>clientX</code></dfn> attribute,
778-
on getting, <em class="ct">must</em> return the x-coordinate, as
779-
number of CSS pixels, of the position where the event occurred relative to
780-
the origin of the viewport.</p>
777+
<p>The <dfn id="mouseeventview-clientx"><code>clientX</code></dfn>
778+
attribute, on getting, <em class="ct">must</em> return the x-coordinate,
779+
as number of CSS pixels, of the position where the event occurred relative
780+
to the origin of the viewport.</p>
781781

782-
<p>The <dfn id="mouseeventview-clienty"><code>clientY</code></dfn> attribute,
783-
on getting, <em class="ct">must</em> return the y-coordinate, as
784-
number of CSS pixels, of the position where the event occurred relative to
785-
the origin of the viewport.</p>
782+
<p>The <dfn id="mouseeventview-clienty"><code>clientY</code></dfn>
783+
attribute, on getting, <em class="ct">must</em> return the y-coordinate,
784+
as number of CSS pixels, of the position where the event occurred relative
785+
to the origin of the viewport.</p>
786786

787787
<p>The <dfn id="mouseeventview-offsetx"><code>offsetX</code></dfn>
788788
attribute, on getting, <em class="ct">must</em> return the x-coordinate,
789789
as number of CSS pixels, of the position where the event
790790
occurred relative to the origin of the padding box of the target
791791
node.</p>
792-
793-
<!-- this can cause negative values -->
794-
792+
795793
<p>The <dfn id="mouseeventview-offsety"><code>offsetY</code></dfn>
796794
attribute, on getting, <em class="ct">must</em> return the y-coordinate,
797795
as number of CSS pixels, of the position where the event
798796
occurred relative to the origin of the padding box of the target
799797
node.</p>
800798

801-
<!-- this can cause negative values -->
802-
803799
<p>The
804800
<dfn id="mouseeventview-x" title="mouseeventview-x"><code>x</code></dfn>
805801
attribute, on getting, <em class="ct">must</em> return the value of
806-
<code>pageX</code>.</p>
802+
<code>clientX</code>.</p>
807803

808804
<p>The
809805
<dfn id="mouseeventview-y" title="mouseeventview-y"><code>y</code></dfn>
810806
attribute, on getting, <em class="ct">must</em> return the value of
811-
<code>pageY</code>.</p>
812-
813-
<p class="issue">Need to more carefully check the
814-
<code title="">x</code> and <code title="">y</code> members and likely the
815-
others too.</p>
816-
807+
<code>clientY</code>.</p>
817808

818809

819810
<h2>Rectangles</h2>
@@ -934,6 +925,7 @@ <h2 class="no-num">Acknowledgments</h2>
934925
David Vest,
935926
Hallvord R. M. Steen,
936927
Morten Stenshorne,
928+
Peter-Paul Koch,
937929
Robert O'Callahan,
938930
Simon Pieters, and
939931
Tarquin Wilton-Jones

0 commit comments

Comments
 (0)