OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html><head> | 2 <html><head> |
3 <style> | 3 <style> |
4 .container { | 4 .container { |
5 margin: 20px; | 5 margin: 20px; |
6 width: 300px; | 6 width: 300px; |
7 height: 200px; | 7 height: 200px; |
8 border: 1px solid black; | 8 border: 1px solid black; |
9 overflow: scroll; | 9 overflow: scroll; |
10 } | 10 } |
(...skipping 27 matching lines...) Loading... |
38 var target = document.getElementsByClassName("target")[0]; | 38 var target = document.getElementsByClassName("target")[0]; |
39 target.style.visibility = "visible"; | 39 target.style.visibility = "visible"; |
40 }; | 40 }; |
41 var container = document.getElementsByClassName("container")[0]; | 41 var container = document.getElementsByClassName("container")[0]; |
42 runAfterLayoutAndPaint(function() { | 42 runAfterLayoutAndPaint(function() { |
43 container.scrollLeft = 0; | 43 container.scrollLeft = 0; |
44 runRepaintAndPixelTest(); | 44 runRepaintAndPixelTest(); |
45 }); | 45 }); |
46 </script> | 46 </script> |
47 </body></html> | 47 </body></html> |
OLD | NEW |