Skip to content

Commit 39c8b1e

Browse files
author
Simon Pieters
committed
[cssom-view] Make scrollIntoView do something in non-visual media. https://www.w3.org/Bugs/Public/show_bug.cgi?id=10533
1 parent 00f8f0b commit 39c8b1e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cssom-view/Overview.src.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -833,8 +833,8 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
833833
<div class='example'>
834834
<p>The following snippet gets the dimensions of the first
835835
<code title>div</code> element in a document:</p>
836-
<pre>var example = document.getElementsByTagName(&quot;div&quot;)[0].getBoundingClientRect();&#xA;
837-
var exampleWidth = example.width;&#xA;
836+
<pre>var example = document.getElementsByTagName("div")[0].getBoundingClientRect();
837+
var exampleWidth = example.width;
838838
var exampleHeight = example.height;</pre>
839839
</div>
840840

@@ -844,6 +844,7 @@ <h2>Extensions to the <code title>Element</code> Interface</h2>
844844
<li><p><span title='scroll an element into view'>Scroll the element into view</span> with the
845845
<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>
846846
dictionary member of <var>options</var>.</p></li>
847+
<li><p>Optionally perform some other action that brings the element to the user's attention.
847848
</ol>
848849

849850
<p>The <dfn title=dom-Element-scrollTop><code>scrollTop</code></dfn> attribute must return the result of running these steps:</p>

0 commit comments

Comments
 (0)