OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../resources/run-after-layout-and-paint.js"></script> | 2 <script src="../../resources/run-after-layout-and-paint.js"></script> |
3 <style> | 3 <style> |
4 body { | 4 body { |
5 margin: 0; | 5 margin: 0; |
6 } | 6 } |
7 | 7 |
8 #big-black-box { | 8 #big-black-box { |
9 background-color: black; | 9 background-color: black; |
10 background-clip: padding-box; | 10 background-clip: padding-box; |
11 height: 10000px; | 11 height: 10000px; |
12 } | 12 } |
13 | 13 |
14 ::-webkit-scrollbar { | 14 ::-webkit-scrollbar { |
15 width: 0px; | 15 width: 0px; |
16 height: 0px; | 16 height: 0px; |
17 } | 17 } |
18 </style> | 18 </style> |
19 <div id="big-black-box"></div> | 19 <div id="big-black-box"></div> |
20 <script> | 20 <script> |
21 runAfterLayoutAndPaint(function() { | 21 runAfterLayoutAndPaint(function() { |
22 console.log('x'); | |
Xianzhu
2015/10/22 22:51:48
This will be removed in the next patch set after t
| |
22 window.scrollTo(0, 10000); | 23 window.scrollTo(0, 10000); |
23 }, true); | 24 }, true); |
24 </script> | 25 </script> |
25 | 26 |
OLD | NEW |