Skip to content

Commit 813d049

Browse files
author
Simon Pieters
committed
[cssom-view] Editorial: note that scroll-behavior doesn't propagate from body
1 parent d25ec67 commit 813d049

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

cssom-view/Overview.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,11 @@ <h3 id="the-screen-interface"><span class="secno">5.2 </span>The <code title="">
682682

683683
<pre class="idl">interface <dfn id="screen">Screen</dfn> {
684684
readonly attribute double <a href="#dom-screen-availwidth" title="dom-Screen-availWidth">availWidth</a>;
685-
readonly attribute double <a href="#dom-screen-availwidth" title="dom-Screen-availWidth">availHeight</a>;
686-
readonly attribute double <a href="#dom-screen-availwidth" title="dom-Screen-availWidth">width</a>;
687-
readonly attribute double <a href="#dom-screen-availwidth" title="dom-Screen-availWidth">height</a>;
688-
readonly attribute unsigned long <a href="#dom-screen-availwidth" title="dom-Screen-availWidth">colorDepth</a>;
689-
readonly attribute unsigned long <a href="#dom-screen-availwidth" title="dom-Screen-availWidth">pixelDepth</a>;
685+
readonly attribute double <a href="#dom-screen-availheight" title="dom-Screen-availHeight">availHeight</a>;
686+
readonly attribute double <a href="#dom-screen-width" title="dom-Screen-width">width</a>;
687+
readonly attribute double <a href="#dom-screen-height" title="dom-Screen-height">height</a>;
688+
readonly attribute unsigned long <a href="#dom-screen-colordepth" title="dom-Screen-colorDepth">colorDepth</a>;
689+
readonly attribute unsigned long <a href="#dom-screen-pixeldepth" title="dom-Screen-pixelDepth">pixelDepth</a>;
690690
};</pre>
691691

692692
<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
@@ -700,7 +700,7 @@ <h3 id="the-screen-interface"><span class="secno">5.2 </span>The <code title="">
700700
<p>The <dfn id="dom-screen-height" title="dom-Screen-height"><code>height</code></dfn> attribute must return the height of the output device.</p>
701701

702702
<p>The <dfn id="dom-screen-colordepth" title="dom-Screen-colorDepth"><code>colorDepth</code></dfn> attribute must return the number of bits allocated to
703-
colors (i.e. excluding the alpha channel) in the output device. If no
703+
colors (i.e. excluding the alpha channel) for one device pixel in the output device. If no
704704
bits are allocated to colors in the output device this attribute
705705
must return zero.</p>
706706

@@ -872,9 +872,7 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
872872
<p>The following snippet gets the dimensions of the first
873873
<code title="">div</code> element in a document:</p>
874874
<pre>var example = document.getElementsByTagName("div")[0].getBoundingClientRect();
875-
876875
var exampleWidth = example.width;
877-
878876
var exampleHeight = example.height;</pre>
879877
</div>
880878

@@ -884,6 +882,7 @@ <h2 id="extensions-to-the-element-interface"><span class="secno">7 </span>Extens
884882
<li><p><a href="#scroll-an-element-into-view" title="scroll an element into view">Scroll the element into view</a> with the
885883
<i>align to top flag</i> set if <var>top</var> is true, and the scroll behavior being the value of the <code title="">behavior</code>
886884
dictionary member of <var>options</var>.</li>
885+
<li><p>Optionally perform some other action that brings the element to the user's attention.
887886
</ol>
888887

889888
<p>The <dfn id="dom-element-scrolltop" title="dom-Element-scrollTop"><code>scrollTop</code></dfn> attribute must return the result of running these steps:</p>
@@ -1504,6 +1503,8 @@ <h3 id="smooth-scrolling:-the-'scroll-behavior'-property"><span class="secno">13
15041503
APIs. Scrolls that are performed by the user are not affected by this property. When this property is specified on the root element, it applies to the
15051504
<a href="#viewport">viewport</a> instead.
15061505

1506+
<p class="note">The '<a href="#scroll-behavior">scroll-behavior</a>' property of the HTML <code title="">body</code> element is <em>not</em> propagated to the viewport.
1507+
15071508
<dl>
15081509
<dt>'<dfn id="scroll-behavior-instant" title="scroll-behavior-instant">instant</dfn>'
15091510
<dd><p>The scrolling box is scrolled in an instant fashion.

cssom-view/Overview.src.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,6 +1466,8 @@ <h3>Smooth Scrolling: The 'scroll-behavior' Property</h3>
14661466
APIs. Scrolls that are performed by the user are not affected by this property. When this property is specified on the root element, it applies to the
14671467
<span>viewport</span> instead.
14681468

1469+
<p class=note>The '<span>scroll-behavior</span>' property of the HTML <code title>body</code> element is <em>not</em> propagated to the viewport.
1470+
14691471
<dl>
14701472
<dt>'<dfn title=scroll-behavior-instant>instant</dfn>'
14711473
<dd><p>The scrolling box is scrolled in an instant fashion.

0 commit comments

Comments
 (0)