Skip to content

Commit 1b9156d

Browse files
committed
pageXOffset, pageYOffset, screenX and screenY of WindowLayout
1 parent 35dda36 commit 1b9156d

2 files changed

Lines changed: 76 additions & 24 deletions

File tree

cssom/Overview.html

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,6 +1804,9 @@ <h3 id=the-windowlayout><span class=secno>4.1. </span>The <code><a
18041804
<p>The term <dfn id=browsing>browsing context</dfn> is used as defined by
18051805
the Window Object 1.0 specification. [Window]
18061806

1807+
<p>Some of the terminology used in this section and its subsection is that
1808+
of Media Queries. [MQ]
1809+
18071810
<p>This interface represents rendering information about the current
18081811
browsing context.
18091812

@@ -1812,10 +1815,10 @@ <h3 id=the-windowlayout><span class=secno>4.1. </span>The <code><a
18121815
readonly attribute float <a href="#innerheight" title=windowlayout-innerheight>innerHeight</a>;
18131816
readonly attribute float <a href="#outerheight" title=windowlayout-outerheight>outerWidth</a>;
18141817
readonly attribute float <a href="#outerheight" title=windowlayout-outerheight>outerHeight</a>;
1815-
readonly attribute float pageXOffset;
1816-
readonly attribute float pageYOffset;
1817-
readonly attribute float screenX;
1818-
readonly attribute float screenY;
1818+
readonly attribute float <a href="#pagexoffset" title=windowlayout-pagexoffset>pageXOffset</a>;
1819+
readonly attribute float <a href="#pageyoffset" title=windowlayout-pageyoffset>pageYOffset</a>;
1820+
readonly attribute float <a href="#screeny" title=windowlayout-screenx>screenX</a>;
1821+
readonly attribute float <span title=windowlayout-screeny>screenY</span>;
18191822
readonly attribute <a href="#screen0">Screen</a> <a href="#screen" title=windowlayout-screen>screen</a>;
18201823
};</pre>
18211824
<!-- XXX float? -->
@@ -1842,14 +1845,40 @@ <h3 id=the-windowlayout><span class=secno>4.1. </span>The <code><a
18421845
title=windowlayout-outerwidth><code>outerWidth</code></dfn>
18431846

18441847
<dd>In web browsers, this attribute <em class=ct>must</em> be the width of
1845-
the browser window. Otherwise, this <em class=ct>must</em> be
1848+
the browser window in pixels. Otherwise, this <em class=ct>must</em> be
18461849
<code>0</code>.
18471850

18481851
<dt><dfn id=outerheight
18491852
title=windowlayout-outerheight><code>outerHeight</code></dfn>
18501853

18511854
<dd>In web browsers, this attribute <em class=ct>must</em> be the height
1852-
of the browser window. Otherwise, this <em class=ct>must</em> be
1855+
of the browser window in pixels. Otherwise, this <em class=ct>must</em>
1856+
be <code>0</code>.
1857+
1858+
<dt><dfn id=pagexoffset
1859+
title=windowlayout-pagexoffset><code>pageXOffset</code></dfn>
1860+
1861+
<dd>This attribute <em class=ct>must</em> be the number of pixels the user
1862+
has scrolled to the right.
1863+
1864+
<dt><dfn id=pageyoffset
1865+
title=windowlayout-pageyoffset><code>pageYOffset</code></dfn>
1866+
1867+
<dd>This attribute <em class=ct>must</em> be the number of pixels the user
1868+
has scrolled to the bottom.
1869+
1870+
<dt><dfn id=screenx title=windowlayout-screenx><code>screenx</code></dfn>
1871+
1872+
<dd>In web browsers, this attribute <em class=ct>must</em> be the amount
1873+
of of pixels to the left of the browser window offsetted against the
1874+
screen of the output device. Otherwise, this <em class=ct>must</em> be
1875+
<code>0</code>.
1876+
1877+
<dt><dfn id=screeny title=windowlayout-screenx><code>screeny</code></dfn>
1878+
1879+
<dd>In web browsers, this attribute <em class=ct>must</em> be the amount
1880+
of of pixels to the top of the browser window offsetted against the
1881+
screen of the output device. Otherwise, this <em class=ct>must</em> be
18531882
<code>0</code>.
18541883

18551884
<dt><dfn id=screen title=windowlayout-screen><code>screen</code></dfn>
@@ -1869,8 +1898,6 @@ <h4 id=the-screen><span class=secno>4.1.1. </span>The <code><a
18691898
<p>This interface represents information about the screen of the output
18701899
device.
18711900

1872-
<p>The terminology used in this subsection is that of Media Queries. [MQ]
1873-
18741901
<pre class=idl>interface <dfn id=screen0>Screen</dfn> {
18751902
readonly attribute float <a href="#availwidth" title=screen-availwidth>availWidth</a>;
18761903
readonly attribute float <a href="#height" title=screen-height>availHeight</a>;

cssom/Overview.src.html

Lines changed: 41 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,10 @@ <h3>The <code>WindowLayout</code> Interface</h3>
14461446
[Window]</p>
14471447

14481448
<p>The term <dfn>browsing context</dfn> is used as defined by the Window
1449-
Object 1.0 specification. [Window]
1449+
Object 1.0 specification. [Window]</p>
1450+
1451+
<p>Some of the terminology used in this section and its subsection is that of
1452+
Media Queries. [MQ]</p>
14501453

14511454
<p>This interface represents rendering information about the current browsing
14521455
context.</p>
@@ -1456,44 +1459,68 @@ <h3>The <code>WindowLayout</code> Interface</h3>
14561459
readonly attribute float <span title="windowlayout-innerheight">innerHeight</span>;
14571460
readonly attribute float <span title="windowlayout-outerheight">outerWidth</span>;
14581461
readonly attribute float <span title="windowlayout-outerheight">outerHeight</span>;
1459-
readonly attribute float pageXOffset;
1460-
readonly attribute float pageYOffset;
1461-
readonly attribute float screenX;
1462-
readonly attribute float screenY;
1462+
readonly attribute float <span title="windowlayout-pagexoffset">pageXOffset</span>;
1463+
readonly attribute float <span title="windowlayout-pageyoffset">pageYOffset</span>;
1464+
readonly attribute float <span title="windowlayout-screenx">screenX</span>;
1465+
readonly attribute float <span title="windowlayout-screeny">screenY</span>;
14631466
readonly attribute <span>Screen</span> <span title="windowlayout-screen">screen</span>;
14641467
};</pre>
14651468
<!-- XXX float? -->
14661469

14671470
<dl>
14681471
<dt><dfn title="windowlayout-innerwidth"><code>innerWidth</code></dfn></dt>
1469-
1472+
14701473
<dd>
14711474
<p>This attribute <em class="ct">must</em> be the viewport width in
14721475
pixels.</p>
14731476

14741477
<p class="note">This is including, if rendered, the vertical scrollbar.</p>
14751478
</dd>
1476-
1479+
14771480
<dt><dfn title="windowlayout-innerheight"><code>innerHeight</code></dfn></dt>
1478-
1481+
14791482
<dd>
14801483
<p>This attribute <em class="ct">must</em> be the viewport height in
14811484
pixels.</p>
1482-
1485+
14831486
<p class="note">This is including, if rendered, the horizontal
14841487
scrollbar.</p>
14851488
</dd>
1486-
1489+
14871490
<dt><dfn title="windowlayout-outerwidth"><code>outerWidth</code></dfn></dt>
1488-
1491+
14891492
<dd>In web browsers, this attribute <em class="ct">must</em> be the width of
1490-
the browser window. Otherwise, this <em class="ct">must</em> be
1493+
the browser window in pixels. Otherwise, this <em class="ct">must</em> be
14911494
<code>0</code>.</dd>
1492-
1495+
14931496
<dt><dfn title="windowlayout-outerheight"><code>outerHeight</code></dfn></dt>
14941497

14951498
<dd>In web browsers, this attribute <em class="ct">must</em> be the height of
1496-
the browser window. Otherwise, this <em class="ct">must</em> be
1499+
the browser window in pixels. Otherwise, this <em class="ct">must</em> be
1500+
<code>0</code>.</dd>
1501+
1502+
<dt><dfn title="windowlayout-pagexoffset"><code>pageXOffset</code></dfn></dt>
1503+
1504+
<dd>This attribute <em class="ct">must</em> be the number of pixels the user
1505+
has scrolled to the right.</dd>
1506+
1507+
<dt><dfn title="windowlayout-pageyoffset"><code>pageYOffset</code></dfn></dt>
1508+
1509+
<dd>This attribute <em class="ct">must</em> be the number of pixels the user
1510+
has scrolled to the bottom.</dd>
1511+
1512+
<dt><dfn title="windowlayout-screenx"><code>screenx</code></dfn></dt>
1513+
1514+
<dd>In web browsers, this attribute <em class="ct">must</em> be the amount of
1515+
of pixels to the left of the browser window offsetted against the screen of
1516+
the output device. Otherwise, this <em class="ct">must</em> be
1517+
<code>0</code>.</dd>
1518+
1519+
<dt><dfn title="windowlayout-screenx"><code>screeny</code></dfn></dt>
1520+
1521+
<dd>In web browsers, this attribute <em class="ct">must</em> be the amount of
1522+
of pixels to the top of the browser window offsetted against the screen of
1523+
the output device. Otherwise, this <em class="ct">must</em> be
14971524
<code>0</code>.</dd>
14981525

14991526
<dt><dfn title="windowlayout-screen"><code>screen</code></dfn></dt>
@@ -1512,8 +1539,6 @@ <h4>The <code>Screen</code> Interface</h4>
15121539
<p>This interface represents information about the screen of the output
15131540
device.</p>
15141541

1515-
<p>The terminology used in this subsection is that of Media Queries. [MQ]</p>
1516-
15171542
<pre class="idl">interface <dfn>Screen</dfn> {
15181543
readonly attribute float <span title="screen-availwidth">availWidth</span>;
15191544
readonly attribute float <span title="screen-height">availHeight</span>;

0 commit comments

Comments
 (0)