Tue, 18 Jun 2013 11:15:38 +0200
[cssom-view] Make scrollIntoView do something in non-visual media. https://www.w3.org/Bugs/Public/show_bug.cgi?id=10533
cssom-view/Overview.src.html | file | annotate | diff | comparison | revisions |
1.1 --- a/cssom-view/Overview.src.html Tue Jun 18 10:43:18 2013 +0200 1.2 +++ b/cssom-view/Overview.src.html Tue Jun 18 11:15:38 2013 +0200 1.3 @@ -833,8 +833,8 @@ 1.4 <div class='example'> 1.5 <p>The following snippet gets the dimensions of the first 1.6 <code title>div</code> element in a document:</p> 1.7 - <pre>var example = document.getElementsByTagName("div")[0].getBoundingClientRect();
 1.8 -var exampleWidth = example.width;
 1.9 + <pre>var example = document.getElementsByTagName("div")[0].getBoundingClientRect(); 1.10 +var exampleWidth = example.width; 1.11 var exampleHeight = example.height;</pre> 1.12 </div> 1.13 1.14 @@ -844,6 +844,7 @@ 1.15 <li><p><span title='scroll an element into view'>Scroll the element into view</span> with the 1.16 <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> 1.17 dictionary member of <var>options</var>.</p></li> 1.18 + <li><p>Optionally perform some other action that brings the element to the user's attention. 1.19 </ol> 1.20 1.21 <p>The <dfn title=dom-Element-scrollTop><code>scrollTop</code></dfn> attribute must return the result of running these steps:</p>