OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/testharness.js"></script> | |
3 <script src="../../resources/testharnessreport.js"></script> | |
4 <div id ="container" style="height: 300px; overflow: auto; margin-top: 200px; ma rgin-bottom: 600px;"> | |
5 <select id="content" multiple="multiple" style="height: 600px;"> | |
6 <option>I</option> | |
7 <option>am</option> | |
8 <option>already</option> | |
9 <option>in</option> | |
10 <option>the</option> | |
11 <option>view</option> | |
12 <option>.</option> | |
13 <option>Do</option> | |
14 <option>not</option> | |
15 <option>scroll</option> | |
16 <option>me</option> | |
17 <option>up</option> | |
18 <option>.</option> | |
19 </select> | |
20 </div> | |
21 | |
22 <script> | |
23 test(function(t) { | |
24 var content = document.getElementById("content"); | |
bokan
2016/08/29 13:59:39
Just FYI, single quotes in javascript are fairly c
| |
25 content.focus(); | |
26 assert_equals(window.scrollY, 0); | |
27 }, "Tests that when the parent is already in the view of page, the page will not scroll the parent even when the child is not completely in the view."); | |
28 </script> | |
OLD | NEW |