Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src='../../resources/testharness.js'></script> | |
| 3 <script src='../../resources/testharnessreport.js'></script> | |
| 4 <body> | |
|
bokan
2016/08/26 16:12:14
Nit: remove <body>
| |
| 5 <div id = 'space1' style = 'height: 200px'> </div> | |
|
bokan
2016/08/26 16:12:14
If you're just using this for space, there's bette
| |
| 6 <div id = 'container' style = 'height: 300px; overflow: auto;' > | |
|
bokan
2016/08/26 16:12:14
Nit: no spaces between attribute, =, and value.
i
| |
| 7 <select id="content" multiple="multiple" style = 'height: 600px'> | |
|
bokan
2016/08/26 16:12:14
Nit: Please indent the <select>
| |
| 8 <option>I</option> | |
| 9 <option>am</option> | |
| 10 <option>already</option> | |
| 11 <option>in</option> | |
| 12 <option>the</option> | |
| 13 <option>view</option> | |
| 14 <option>.</option> | |
| 15 <option>Do</option> | |
| 16 <option>not</option> | |
| 17 <option>scroll</option> | |
| 18 <option>me</option> | |
| 19 <option>up</option> | |
| 20 <option>.</option> | |
| 21 </select> | |
| 22 </div> | |
| 23 <div id = 'space2' style = 'height: 600px'></div> | |
| 24 </body> | |
| 25 | |
| 26 <script> | |
| 27 test(function(t) { | |
| 28 var content = document.getElementById('content'); | |
| 29 content.focus(); | |
| 30 assert_equals(window.scrollY, 0); | |
| 31 }, '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.'); | |
| 32 </script> | |
| OLD | NEW |