[CSS Regions] scrollIntoView for elements flowed into regions
[WebKit-https.git] / LayoutTests / fast / regions / scroll-into-view-relative-expected.html
1 <!DOCTYPE html>
2
3 <script type="text/javascript">
4     if (window.testRunner)
5         testRunner.waitUntilDone();
6
7     function onLoad()
8     {
9         setTimeout(
10             function()
11             {
12                 var content = document.getElementById("content");
13                 content.scrollIntoView(true);
14
15                 if (window.testRunner)
16                     testRunner.notifyDone();
17             },
18             0);
19     }
20 </script>
21
22 <style>
23     #region {
24         border: 4px solid brown;
25         padding: 5px;
26         position: relative;
27         top: 800px;
28     }
29
30     #content {
31         border: 2px solid green;
32         width: 210px;
33         height: 150px;
34         padding: 3px;
35         position: relative;
36         top: 200px;
37     }
38 </style>
39
40 <body onload="onLoad()">
41     <div id="region">
42         <div id="content">
43             Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. <span style="color:brown"><b>THE END</b></span>.
44         </div>
45     </div>
46 </body>