Skip to content

Commit 35dda36

Browse files
committed
define innerWidth, innerHeight, outerWidth and outerHeight for WindowLayout
1 parent 51b9f3d commit 35dda36

2 files changed

Lines changed: 86 additions & 10 deletions

File tree

cssom/Overview.html

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,24 +1808,61 @@ <h3 id=the-windowlayout><span class=secno>4.1. </span>The <code><a
18081808
browsing context.
18091809

18101810
<pre class=idl>interface <dfn id=windowlayout>WindowLayout</dfn> {
1811-
readonly attribute float innerWidth;
1812-
readonly attribute float innerHeight;
1813-
readonly attribute float outerWidth;
1814-
readonly attribute float outerHeight;
1811+
readonly attribute float <a href="#innerwidth" title=windowlayout-innerwidth>innerWidth</a>;
1812+
readonly attribute float <a href="#innerheight" title=windowlayout-innerheight>innerHeight</a>;
1813+
readonly attribute float <a href="#outerheight" title=windowlayout-outerheight>outerWidth</a>;
1814+
readonly attribute float <a href="#outerheight" title=windowlayout-outerheight>outerHeight</a>;
18151815
readonly attribute float pageXOffset;
18161816
readonly attribute float pageYOffset;
18171817
readonly attribute float screenX;
18181818
readonly attribute float screenY;
18191819
readonly attribute <a href="#screen0">Screen</a> <a href="#screen" title=windowlayout-screen>screen</a>;
18201820
};</pre>
1821+
<!-- XXX float? -->
18211822

18221823
<dl>
1824+
<dt><dfn id=innerwidth
1825+
title=windowlayout-innerwidth><code>innerWidth</code></dfn>
1826+
1827+
<dd>
1828+
<p>This attribute <em class=ct>must</em> be the viewport width in pixels.</p>
1829+
1830+
<p class=note>This is including, if rendered, the vertical scrollbar.</p>
1831+
1832+
<dt><dfn id=innerheight
1833+
title=windowlayout-innerheight><code>innerHeight</code></dfn>
1834+
1835+
<dd>
1836+
<p>This attribute <em class=ct>must</em> be the viewport height in
1837+
pixels.</p>
1838+
1839+
<p class=note>This is including, if rendered, the horizontal scrollbar.</p>
1840+
1841+
<dt><dfn id=outerwidth
1842+
title=windowlayout-outerwidth><code>outerWidth</code></dfn>
1843+
1844+
<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
1846+
<code>0</code>.
1847+
1848+
<dt><dfn id=outerheight
1849+
title=windowlayout-outerheight><code>outerHeight</code></dfn>
1850+
1851+
<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
1853+
<code>0</code>.
1854+
18231855
<dt><dfn id=screen title=windowlayout-screen><code>screen</code></dfn>
18241856

18251857
<dd>This attribute <em class=ct>must</em> hold a <code><a
18261858
href="#screen0">Screen</a></code> object.
18271859
</dl>
18281860

1861+
<p>If the user agent supports multiple views and the current view does not
1862+
have a notion of an output device the above attributes with the exception
1863+
of <code title=windowlayout-screen><a href="#screen">screen</a></code> <em
1864+
class=ct>must</em> be <code>0</code>. [DOM2View]
1865+
18291866
<h4 id=the-screen><span class=secno>4.1.1. </span>The <code><a
18301867
href="#screen0">Screen</a></code> Interface</h4>
18311868

@@ -1842,6 +1879,7 @@ <h4 id=the-screen><span class=secno>4.1.1. </span>The <code><a
18421879
readonly attribute float <a href="#colordepth" title=screen-colordepth>colorDepth</a>;
18431880
readonly attribute float <a href="#pixeldepth" title=screen-pixeldepth>pixelDepth</a>;
18441881
};</pre>
1882+
<!-- XXX float? -->
18451883

18461884
<dl class=members>
18471885
<dt><dfn id=availwidth
@@ -1879,7 +1917,7 @@ <h4 id=the-screen><span class=secno>4.1.1. </span>The <code><a
18791917

18801918
<p>If the user agent supports multiple views and the current view does not
18811919
have a notion of an output device the above attributes <em
1882-
class=ct>must</em> be <code>0</code>.
1920+
class=ct>must</em> be <code>0</code>. [DOM2View]
18831921

18841922
<h3 id=the-elementlayout><span class=secno>4.2. </span>The <code><a
18851923
href="#elementlayout">ElementLayout</a></code> Interface</h3>

cssom/Overview.src.html

Lines changed: 43 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,24 +1452,61 @@ <h3>The <code>WindowLayout</code> Interface</h3>
14521452
context.</p>
14531453

14541454
<pre class="idl">interface <dfn>WindowLayout</dfn> {
1455-
readonly attribute float innerWidth;
1456-
readonly attribute float innerHeight;
1457-
readonly attribute float outerWidth;
1458-
readonly attribute float outerHeight;
1455+
readonly attribute float <span title="windowlayout-innerwidth">innerWidth</span>;
1456+
readonly attribute float <span title="windowlayout-innerheight">innerHeight</span>;
1457+
readonly attribute float <span title="windowlayout-outerheight">outerWidth</span>;
1458+
readonly attribute float <span title="windowlayout-outerheight">outerHeight</span>;
14591459
readonly attribute float pageXOffset;
14601460
readonly attribute float pageYOffset;
14611461
readonly attribute float screenX;
14621462
readonly attribute float screenY;
14631463
readonly attribute <span>Screen</span> <span title="windowlayout-screen">screen</span>;
14641464
};</pre>
1465+
<!-- XXX float? -->
14651466

14661467
<dl>
1468+
<dt><dfn title="windowlayout-innerwidth"><code>innerWidth</code></dfn></dt>
1469+
1470+
<dd>
1471+
<p>This attribute <em class="ct">must</em> be the viewport width in
1472+
pixels.</p>
1473+
1474+
<p class="note">This is including, if rendered, the vertical scrollbar.</p>
1475+
</dd>
1476+
1477+
<dt><dfn title="windowlayout-innerheight"><code>innerHeight</code></dfn></dt>
1478+
1479+
<dd>
1480+
<p>This attribute <em class="ct">must</em> be the viewport height in
1481+
pixels.</p>
1482+
1483+
<p class="note">This is including, if rendered, the horizontal
1484+
scrollbar.</p>
1485+
</dd>
1486+
1487+
<dt><dfn title="windowlayout-outerwidth"><code>outerWidth</code></dfn></dt>
1488+
1489+
<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
1491+
<code>0</code>.</dd>
1492+
1493+
<dt><dfn title="windowlayout-outerheight"><code>outerHeight</code></dfn></dt>
1494+
1495+
<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
1497+
<code>0</code>.</dd>
1498+
14671499
<dt><dfn title="windowlayout-screen"><code>screen</code></dfn></dt>
14681500

14691501
<dd>This attribute <em class="ct">must</em> hold a <code>Screen</code>
14701502
object.</dd>
14711503
</dl>
14721504

1505+
<p>If the user agent supports multiple views and the current view does not
1506+
have a notion of an output device the above attributes with the exception of
1507+
<code title="windowlayout-screen">screen</code> <em class="ct">must</em> be
1508+
<code>0</code>. [DOM2View]</p>
1509+
14731510
<h4>The <code>Screen</code> Interface</h4>
14741511

14751512
<p>This interface represents information about the screen of the output
@@ -1485,6 +1522,7 @@ <h4>The <code>Screen</code> Interface</h4>
14851522
readonly attribute float <span title="screen-colordepth">colorDepth</span>;
14861523
readonly attribute float <span title="screen-pixeldepth">pixelDepth</span>;
14871524
};</pre>
1525+
<!-- XXX float? -->
14881526

14891527
<dl class="members">
14901528
<dt><dfn title="screen-availwidth"><code>availWidth</code></dfn></dt>
@@ -1517,7 +1555,7 @@ <h4>The <code>Screen</code> Interface</h4>
15171555

15181556
<p>If the user agent supports multiple views and the current view does not
15191557
have a notion of an output device the above attributes
1520-
<em class="ct">must</em> be <code>0</code>.</p>
1558+
<em class="ct">must</em> be <code>0</code>. [DOM2View]</p>
15211559

15221560
<h3>The <code>ElementLayout</code> Interface</h3>
15231561

0 commit comments

Comments
 (0)