|
29 | 29 | <div class=head> |
30 | 30 | <h1 id=cssom>Cascading Style Sheets Object Model (<abbr>CSSOM</abbr>)</h1> |
31 | 31 |
|
32 | | - <h2 class="no-num no-toc" id="">Editor's draft <!--W3C Working Draft--> 28 |
| 32 | + <h2 class="no-num no-toc" id="">Editor's draft <!--W3C Working Draft--> 30 |
33 | 33 | January 2007</h2> |
34 | 34 |
|
35 | 35 | <dl> |
36 | 36 | <dt>This version: |
37 | 37 |
|
38 | 38 | <dd><a |
39 | | - href="http://www.w3.org/TR/2007/WD-cssom-20070128">http://www.w3.org/TR/2007/WD-cssom-20070128/</a> |
| 39 | + href="http://www.w3.org/TR/2007/WD-cssom-20070130">http://www.w3.org/TR/2007/WD-cssom-20070130/</a> |
40 | 40 |
|
41 | 41 | <dt>Latest version: |
42 | 42 |
|
@@ -236,6 +236,10 @@ <h2 class="no-num no-toc" id=toc>Table of Contents</h2> |
236 | 236 | <ul class=toc> |
237 | 237 | <li><a href="#the-windowlayout"><span class=secno>4.1. </span>The |
238 | 238 | <code>WindowLayout</code> Interface</a> |
| 239 | + <ul class=toc> |
| 240 | + <li><a href="#the-screen"><span class=secno>4.1.1. </span>The |
| 241 | + <code>Screen</code> Interface</a> |
| 242 | + </ul> |
239 | 243 |
|
240 | 244 | <li><a href="#the-elementlayout"><span class=secno>4.2. </span>The |
241 | 245 | <code>ElementLayout</code> Interface</a> |
@@ -1793,31 +1797,90 @@ <h2 id=layout><span class=secno>4. </span>Layout APIs</h2> |
1793 | 1797 | <h3 id=the-windowlayout><span class=secno>4.1. </span>The <code><a |
1794 | 1798 | href="#windowlayout">WindowLayout</a></code> Interface</h3> |
1795 | 1799 |
|
| 1800 | + <p>The <code><a href="#windowlayout">WindowLayout</a></code> interface <em |
| 1801 | + class=ct>must</em> be implemented on objects implementing the |
| 1802 | + <code>Window</code> interface. [Window] |
| 1803 | + |
| 1804 | + <p>The term <dfn id=browsing>browsing context</dfn> is used as defined by |
| 1805 | + the Window Object 1.0 specification. [Window] |
| 1806 | + |
| 1807 | + <p>This interface represents rendering information about the current |
| 1808 | + browsing context. |
| 1809 | + |
1796 | 1810 | <pre class=idl>interface <dfn id=windowlayout>WindowLayout</dfn> { |
1797 | | - // do we need these given the attributes below? |
1798 | 1811 | readonly attribute float innerWidth; |
1799 | 1812 | readonly attribute float innerHeight; |
1800 | 1813 | readonly attribute float outerWidth; |
1801 | 1814 | readonly attribute float outerHeight; |
1802 | | - |
1803 | | - // do we want these here??? do we need them |
1804 | 1815 | readonly attribute float pageXOffset; |
1805 | 1816 | readonly attribute float pageYOffset; |
1806 | 1817 | readonly attribute float screenX; |
1807 | 1818 | readonly attribute float screenY; |
| 1819 | + readonly attribute <a href="#screen0">Screen</a> <a href="#screen" title=windowlayout-screen>screen</a>; |
| 1820 | +};</pre> |
1808 | 1821 |
|
1809 | | - readonly attribute <a href="#screen">Screen</a> screen; |
1810 | | -}; |
| 1822 | + <dl> |
| 1823 | + <dt><dfn id=screen title=windowlayout-screen><code>screen</code></dfn> |
| 1824 | + |
| 1825 | + <dd>This attribute <em class=ct>must</em> hold a <code><a |
| 1826 | + href="#screen0">Screen</a></code> object. |
| 1827 | + </dl> |
| 1828 | + |
| 1829 | + <h4 id=the-screen><span class=secno>4.1.1. </span>The <code><a |
| 1830 | + href="#screen0">Screen</a></code> Interface</h4> |
| 1831 | + |
| 1832 | + <p>This interface represents information about the screen of the output |
| 1833 | + device. |
| 1834 | + |
| 1835 | + <p>The terminology used in this subsection is that of Media Queries. [MQ] |
1811 | 1836 |
|
1812 | | -interface <dfn id=screen>Screen</dfn> { |
1813 | | - readonly attribute float availWidth; |
1814 | | - readonly attribute float availHeight; |
1815 | | - readonly attribute float width; |
1816 | | - readonly attribute float height; |
1817 | | - readonly attribute float colorDepth; |
1818 | | - readonly attribute float pixelDepth; // maps colorDepth.. |
| 1837 | + <pre class=idl>interface <dfn id=screen0>Screen</dfn> { |
| 1838 | + readonly attribute float <a href="#availwidth" title=screen-availwidth>availWidth</a>; |
| 1839 | + readonly attribute float <a href="#height" title=screen-height>availHeight</a>; |
| 1840 | + readonly attribute float <a href="#width" title=screen-width>width</a>; |
| 1841 | + readonly attribute float <a href="#height" title=screen-height>height</a>; |
| 1842 | + readonly attribute float <a href="#colordepth" title=screen-colordepth>colorDepth</a>; |
| 1843 | + readonly attribute float <a href="#pixeldepth" title=screen-pixeldepth>pixelDepth</a>; |
1819 | 1844 | };</pre> |
1820 | 1845 |
|
| 1846 | + <dl class=members> |
| 1847 | + <dt><dfn id=availwidth |
| 1848 | + title=screen-availwidth><code>availWidth</code></dfn> |
| 1849 | + |
| 1850 | + <dd>This attribute <em class=ct>must</em> be the available width for |
| 1851 | + rendering surface of the output device in pixels. |
| 1852 | + |
| 1853 | + <dt><dfn id=availheight |
| 1854 | + title=screen-availheight><code>availHeight</code></dfn> |
| 1855 | + |
| 1856 | + <dd>This attribute <em class=ct>must</em> be the available height for |
| 1857 | + rendering surface of the output device in pixels. |
| 1858 | + |
| 1859 | + <dt><dfn id=width title=screen-width><code>width</code></dfn> |
| 1860 | + |
| 1861 | + <dd>This attribute <em class=ct>must</em> be the width of the output |
| 1862 | + device. |
| 1863 | + |
| 1864 | + <dt><dfn id=height title=screen-height><code>height</code></dfn> |
| 1865 | + |
| 1866 | + <dd>This attribute <em class=ct>must</em> be the height of the output |
| 1867 | + device. |
| 1868 | + |
| 1869 | + <dt><dfn id=colordepth |
| 1870 | + title=screen-colordepth><code>colorDepth</code></dfn> |
| 1871 | + |
| 1872 | + <dt><dfn id=pixeldepth |
| 1873 | + title=screen-pixeldepth><code>pixelDepth</code></dfn></dt> |
| 1874 | + <!-- pixelDepth is not supported by Internet Explorer 7 --> |
| 1875 | + |
| 1876 | + <dd>These attributes <em class=ct>must</em> be the number of bits per |
| 1877 | + color from the output device. |
| 1878 | + </dl> |
| 1879 | + |
| 1880 | + <p>If the user agent supports multiple views and the current view does not |
| 1881 | + have a notion of an output device the above attributes <em |
| 1882 | + class=ct>must</em> be <code>0</code>. |
| 1883 | + |
1821 | 1884 | <h3 id=the-elementlayout><span class=secno>4.2. </span>The <code><a |
1822 | 1885 | href="#elementlayout">ElementLayout</a></code> Interface</h3> |
1823 | 1886 |
|
|
0 commit comments