Skip to content

Commit 3244315

Browse files
author
Simon Pieters
committed
[cssom-view] Give unit explicitly for Screen. <http://www.w3.org/mid/51D62D7A.3010701@oupeng.com>
1 parent ae9e2ab commit 3244315

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

cssom-view/Overview.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ <h2 id="terminology"><span class="secno">3 </span>Terminology</h2>
421421
<h3 id="css-pixels"><span class="secno">3.1 </span>CSS pixels</h3>
422422

423423
<p>All coordinates and dimensions for the APIs defined in this
424-
specification are in CSS pixels. <!--<span data-anolis-ref>CSS</span>-->
424+
specification are in CSS pixels, unless otherwise specified. <!--<span data-anolis-ref>CSS</span>-->
425425

426426
<p class="note">This does not apply to e.g.
427427
<code title="dom-Window-matchMedia"><a href="#dom-window-matchmedia">matchMedia()</a></code> as the units
@@ -755,14 +755,14 @@ <h3 id="the-screen-interface"><span class="secno">5.2 </span>The <code title="">
755755
};</pre>
756756

757757
<p>The <dfn id="dom-screen-availwidth" title="dom-Screen-availWidth"><code>availWidth</code></dfn> attribute must return the available width of the rendering surface of the output
758-
device. <!--fingerprint--></p>
758+
device, in CSS pixels. <!--fingerprint--></p>
759759

760760
<p>The <dfn id="dom-screen-availheight" title="dom-Screen-availHeight"><code>availHeight</code></dfn> attribute must return the available height of the rendering surface of the output
761-
device. <!--fingerprint--></p>
761+
device, in CSS pixels. <!--fingerprint--></p>
762762

763-
<p>The <dfn id="dom-screen-width" title="dom-Screen-width"><code>width</code></dfn> attribute must return the width of the output device. <!--fingerprint--></p>
763+
<p>The <dfn id="dom-screen-width" title="dom-Screen-width"><code>width</code></dfn> attribute must return the width of the output device, in CSS pixels. <!--fingerprint--></p>
764764

765-
<p>The <dfn id="dom-screen-height" title="dom-Screen-height"><code>height</code></dfn> attribute must return the height of the output device. <!--fingerprint--></p>
765+
<p>The <dfn id="dom-screen-height" title="dom-Screen-height"><code>height</code></dfn> attribute must return the height of the output device, in CSS pixels. <!--fingerprint--></p>
766766

767767
<p>The <dfn id="dom-screen-colordepth" title="dom-Screen-colorDepth"><code>colorDepth</code></dfn> attribute must return 24.</p>
768768

@@ -1648,6 +1648,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>
16481648
Elliott Sprehn,
16491649
Garrett Smith,
16501650
Hallvord R. M. Steen,
1651+
Kang-Hao Lu,
16511652
Leif Arne Storset,
16521653
Luiz Agostini,
16531654
Maciej Stachowiak,

cssom-view/Overview.src.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ <h2>Terminology</h2>
383383
<h3>CSS pixels</h3>
384384

385385
<p>All coordinates and dimensions for the APIs defined in this
386-
specification are in CSS pixels. <!--<span data-anolis-ref>CSS</span>-->
386+
specification are in CSS pixels, unless otherwise specified. <!--<span data-anolis-ref>CSS</span>-->
387387

388388
<p class="note">This does not apply to e.g.
389389
<code title=dom-Window-matchMedia>matchMedia()</code> as the units
@@ -717,14 +717,14 @@ <h3>The <code title>Screen</code> Interface</h3>
717717
};</pre>
718718

719719
<p>The <dfn title=dom-Screen-availWidth><code>availWidth</code></dfn> attribute must return the available width of the rendering surface of the output
720-
device. <!--fingerprint--></p>
720+
device, in CSS pixels. <!--fingerprint--></p>
721721

722722
<p>The <dfn title=dom-Screen-availHeight><code>availHeight</code></dfn> attribute must return the available height of the rendering surface of the output
723-
device. <!--fingerprint--></p>
723+
device, in CSS pixels. <!--fingerprint--></p>
724724

725-
<p>The <dfn title=dom-Screen-width><code>width</code></dfn> attribute must return the width of the output device. <!--fingerprint--></p>
725+
<p>The <dfn title=dom-Screen-width><code>width</code></dfn> attribute must return the width of the output device, in CSS pixels. <!--fingerprint--></p>
726726

727-
<p>The <dfn title=dom-Screen-height><code>height</code></dfn> attribute must return the height of the output device. <!--fingerprint--></p>
727+
<p>The <dfn title=dom-Screen-height><code>height</code></dfn> attribute must return the height of the output device, in CSS pixels. <!--fingerprint--></p>
728728

729729
<p>The <dfn title=dom-Screen-colorDepth><code>colorDepth</code></dfn> attribute must return 24.</p>
730730

@@ -1590,6 +1590,7 @@ <h2 class="no-num">Acknowledgments</h2>
15901590
Elliott Sprehn,
15911591
Garrett Smith,
15921592
Hallvord R. M. Steen,
1593+
Kang-Hao Lu,
15931594
Leif Arne Storset,
15941595
Luiz Agostini,
15951596
Maciej Stachowiak,

0 commit comments

Comments
 (0)