You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><p>If the event's <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#dispatch-flag">dispatch flag</a> is set, return the horizontal coordinate of the position where the event occurred
1363
+
relative to the origin of the <ahref="#initial-containing-block">initial containing block</a> and terminate these steps.
1364
+
<li><p>Let <var>offset</var> be the value of the <codetitle="dom-Window-scrollX"><ahref="#dom-window-scrollx">scrollX</a></code> attribute of the event's associated
1365
+
<codeclass="external" data-anolis-spec="html"><ahref="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#window">Window</a></code> object, if there is one, or zero otherwise.
1366
+
<li><p>Return the sum of <var>offset</var> and the value of the event's <codetitle="dom-MouseEvent-clientX"><ahref="#dom-mouseevent-clientx">clientX</a></code> attribute.
1367
+
</ol>
1368
+
1369
+
<p>The <dfnid="dom-mouseevent-pagey" title="dom-MouseEvent-pageY"><code>pageY</code></dfn> attribute must follow these steps:
1370
+
1371
+
<ol>
1372
+
<li><p>If the event's <aclass="external" data-anolis-spec="dom" href="http://dom.spec.whatwg.org/#dispatch-flag">dispatch flag</a> is set, return the vertical coordinate of the position where the event occurred
1373
+
relative to the origin of the <ahref="#initial-containing-block">initial containing block</a> and terminate these steps.
1374
+
<li><p>Let <var>offset</var> be the value of the <codetitle="dom-Window-scrollX"><ahref="#dom-window-scrollx">scrollX</a></code> attribute of the event's associated
1375
+
<codeclass="external" data-anolis-spec="html"><ahref="http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#window">Window</a></code> object, if there is one, or zero otherwise.
1376
+
<li><p>Return the sum of <var>offset</var> and the value of the event's <codetitle="dom-MouseEvent-clientY"><ahref="#dom-mouseevent-clienty">clientY</a></code> attribute.
1377
+
</ol>
1372
1378
1373
1379
<p>The <dfnid="dom-mouseevent-clientx" title="dom-MouseEvent-clientX"><code>clientX</code></dfn> attribute must return the x-coordinate of
1374
1380
the position where the event occurred relative to the origin of the
<p>The <dfnid="dom-mouseevent-y" title="dom-MouseEvent-y"><code>y</code></dfn> attribute must return the value of <codetitle="dom-MouseEvent-clientY"><ahref="#dom-mouseevent-clienty">clientY</a></code>.</p>
1384
1390
1385
-
<p>The <dfnid="dom-mouseevent-offsetx" title="dom-MouseEvent-offsetX"><code>offsetX</code></dfn> attribute must return the x-coordinate of
1386
-
the position where the event occurred relative to the origin of the
1387
-
<ahref="#padding-edge">padding edge</a> of the target node.</p>
1391
+
<p>The <dfnid="dom-mouseevent-offsetx" title="dom-MouseEvent-offsetX"><code>offsetX</code></dfn> attribute must follow these steps:
1392
+
1393
+
<ol>
1394
+
<li><p>If the event's <aclass="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
1395
+
origin of the <ahref="#padding-edge">padding edge</a> of the target node and terminate these steps.
1396
+
<li><p>Return the value of the event's <codetitle="dom-MouseEvent-pageX"><ahref="#dom-mouseevent-pagex">pageX</a></code> attribute.
1397
+
</ol>
1398
+
1399
+
<p>The <dfnid="dom-mouseevent-offsety" title="dom-MouseEvent-offsetY"><code>offsetY</code></dfn> attribute must follow these steps:
1400
+
1401
+
<ol>
1402
+
<li><p>If the event's <aclass="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
1403
+
origin of the <ahref="#padding-edge">padding edge</a> of the target node and terminate these steps.
1404
+
<li><p>Return the value of the event's <codetitle="dom-MouseEvent-pageY"><ahref="#dom-mouseevent-pagey">pageY</a></code> attribute.
1405
+
</ol>
1388
1406
1389
-
<p>The <dfnid="dom-mouseevent-offsety" title="dom-MouseEvent-offsetY"><code>offsetY</code></dfn> attribute must return the y-coordinate of
1390
-
the position where the event occurred relative to the origin of the
1391
-
<ahref="#padding-edge">padding edge</a> of the target node.</p>
Copy file name to clipboardExpand all lines: cssom-view/Overview.src.html
+33-18Lines changed: 33 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1304,14 +1304,8 @@ <h2>Extensions to the <code title>MouseEvent</code> Interface</h2>
1304
1304
partial dictionary <span>MouseEventInit</span> {
1305
1305
double screenX = 0;
1306
1306
double screenY = 0;
1307
-
double pageX = 0;
1308
-
double pageY = 0;
1309
1307
double clientX = 0;
1310
1308
double clientY = 0;
1311
-
double x = 0;
1312
-
double y = 0;
1313
-
double offsetX = 0;
1314
-
double offsetY = 0;
1315
1309
};</pre>
1316
1310
1317
1311
<p>The <dfntitle=dom-MouseEvent-screenX><code>screenX</code></dfn> attribute must return the x-coordinate of
@@ -1322,13 +1316,25 @@ <h2>Extensions to the <code title>MouseEvent</code> Interface</h2>
1322
1316
the position where the event occurred relative to the origin of the
1323
1317
screen.</p>
1324
1318
1325
-
<p>The <dfntitle=dom-MouseEvent-pageX><code>pageX</code></dfn> attribute must return the horizontal coordinate of
1326
-
the position where the event occurred relative to
1327
-
the origin of the <span>initial containing block</span>.</p>
1319
+
<p>The <dfntitle=dom-MouseEvent-pageX><code>pageX</code></dfn> attribute must follow these steps:
1328
1320
1329
-
<p>The <dfntitle=dom-MouseEvent-pageY><code>pageY</code></dfn> attribute must return the y-coordinate of the
1330
-
position where the event occurred relative to the origin of the
1331
-
<span>initial containing block</span>.</p>
1321
+
<ol>
1322
+
<li><p>If the event's <spandata-anolis-spec=dom>dispatch flag</span> is set, return the horizontal coordinate of the position where the event occurred
1323
+
relative to the origin of the <span>initial containing block</span> and terminate these steps.
1324
+
<li><p>Let <var>offset</var> be the value of the <codetitle=dom-Window-scrollX>scrollX</code> attribute of the event's associated
1325
+
<codedata-anolis-spec=html>Window</code> object, if there is one, or zero otherwise.
1326
+
<li><p>Return the sum of <var>offset</var> and the value of the event's <codetitle=dom-MouseEvent-clientX>clientX</code> attribute.
1327
+
</ol>
1328
+
1329
+
<p>The <dfntitle=dom-MouseEvent-pageY><code>pageY</code></dfn> attribute must follow these steps:
1330
+
1331
+
<ol>
1332
+
<li><p>If the event's <spandata-anolis-spec=dom>dispatch flag</span> is set, return the vertical coordinate of the position where the event occurred
1333
+
relative to the origin of the <span>initial containing block</span> and terminate these steps.
1334
+
<li><p>Let <var>offset</var> be the value of the <codetitle=dom-Window-scrollX>scrollX</code> attribute of the event's associated
1335
+
<codedata-anolis-spec=html>Window</code> object, if there is one, or zero otherwise.
1336
+
<li><p>Return the sum of <var>offset</var> and the value of the event's <codetitle=dom-MouseEvent-clientY>clientY</code> attribute.
1337
+
</ol>
1332
1338
1333
1339
<p>The <dfntitle=dom-MouseEvent-clientX><code>clientX</code></dfn> attribute must return the x-coordinate of
1334
1340
the position where the event occurred relative to the origin of the
@@ -1342,13 +1348,22 @@ <h2>Extensions to the <code title>MouseEvent</code> Interface</h2>
1342
1348
1343
1349
<p>The <dfntitle=dom-MouseEvent-y><code>y</code></dfn> attribute must return the value of <codetitle=dom-MouseEvent-clientY>clientY</code>.</p>
1344
1350
1345
-
<p>The <dfntitle=dom-MouseEvent-offsetX><code>offsetX</code></dfn> attribute must return the x-coordinate of
1346
-
the position where the event occurred relative to the origin of the
1347
-
<span>padding edge</span> of the target node.</p>
1351
+
<p>The <dfntitle=dom-MouseEvent-offsetX><code>offsetX</code></dfn> attribute must follow these steps:
1352
+
1353
+
<ol>
1354
+
<li><p>If the event's <spandata-anolis-spec=dom>dispatch flag</span> is set, return the x-coordinate of the position where the event occurred relative to the
1355
+
origin of the <span>padding edge</span> of the target node and terminate these steps.
1356
+
<li><p>Return the value of the event's <codetitle=dom-MouseEvent-pageX>pageX</code> attribute.
1357
+
</ol>
1358
+
1359
+
<p>The <dfntitle=dom-MouseEvent-offsetY><code>offsetY</code></dfn> attribute must follow these steps:
1360
+
1361
+
<ol>
1362
+
<li><p>If the event's <spandata-anolis-spec=dom>dispatch flag</span> is set, return the y-coordinate of the position where the event occurred relative to the
1363
+
origin of the <span>padding edge</span> of the target node and terminate these steps.
1364
+
<li><p>Return the value of the event's <codetitle=dom-MouseEvent-pageY>pageY</code> attribute.
1365
+
</ol>
1348
1366
1349
-
<p>The <dfntitle=dom-MouseEvent-offsetY><code>offsetY</code></dfn> attribute must return the y-coordinate of
1350
-
the position where the event occurred relative to the origin of the
0 commit comments