OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 ::-webkit-scrollbar { | 4 ::-webkit-scrollbar { |
5 width: 0px; | 5 width: 0px; |
6 height: 0px; | 6 height: 0px; |
7 } | 7 } |
8 </style> | 8 </style> |
9 <script> | 9 <script> |
10 window.enablePixelTesting = true; | 10 window.enablePixelTesting = true; |
(...skipping 16 matching lines...) Expand all Loading... |
27 eventSender.setPageScaleFactor(scaleFactor, scaleOffset, scaleOf
fset); | 27 eventSender.setPageScaleFactor(scaleFactor, scaleOffset, scaleOf
fset); |
28 } | 28 } |
29 | 29 |
30 function test() { | 30 function test() { |
31 scaleWithEventSender(); | 31 scaleWithEventSender(); |
32 scroll(); | 32 scroll(); |
33 } | 33 } |
34 </script> | 34 </script> |
35 <script src="../../resources/js-test.js"></script> | 35 <script src="../../resources/js-test.js"></script> |
36 </head> | 36 </head> |
37 <body onload="test();" style="height: 2000px"> | 37 <body onload="test();" style="width: 4000px; height: 4000px"> |
38 <div id="console"></div> | 38 <div id="console"></div> |
39 <iframe id="frame" style="width:400px; height: 400px; position: absolute; to
p: 100px;"></iframe> | 39 <iframe id="frame" style="width:400px; height: 400px; position: absolute; to
p: 100px;"></iframe> |
40 | 40 |
41 <script> | 41 <script> |
42 var frame = document.getElementById('frame'); | 42 var frame = document.getElementById('frame'); |
43 var doc = frame.contentDocument.open(); | 43 var doc = frame.contentDocument.open(); |
44 doc.write("<div style='left:0; top:0; width:100px; height:100px; positio
n:absolute; background:yellow;'></div>"); | 44 doc.write("<div style='left:0; top:0; width:100px; height:100px; positio
n:absolute; background:yellow;'></div>"); |
45 doc.write("<div style='left:100px; top:0; width:100px; height:100px; pos
ition:absolute; background:green;'></div>"); | 45 doc.write("<div style='left:100px; top:0; width:100px; height:100px; pos
ition:absolute; background:green;'></div>"); |
46 doc.write("<div style='left:200px; top:0; width:100px; height:100px; pos
ition:absolute; background:blue;'></div>"); | 46 doc.write("<div style='left:200px; top:0; width:100px; height:100px; pos
ition:absolute; background:blue;'></div>"); |
47 doc.write("<div style='left:300px; top:0; width:100px; height:100px; pos
ition:absolute; background:green;'></div>"); | 47 doc.write("<div style='left:300px; top:0; width:100px; height:100px; pos
ition:absolute; background:green;'></div>"); |
48 doc.write("<div style='left:400px; top:0; width:100px; height:100px; pos
ition:absolute; background:blue;'></div>"); | 48 doc.write("<div style='left:400px; top:0; width:100px; height:100px; pos
ition:absolute; background:blue;'></div>"); |
49 | 49 |
50 doc.write("<div style='left:0; top:100px; width:100px; height:100px; pos
ition:absolute; background: green;'></div>"); | 50 doc.write("<div style='left:0; top:100px; width:100px; height:100px; pos
ition:absolute; background: green;'></div>"); |
51 doc.write("<div style='left:100px; top:100px; width:100px; height:100px;
position:absolute; background:blue;'></div>"); | 51 doc.write("<div style='left:100px; top:100px; width:100px; height:100px;
position:absolute; background:blue;'></div>"); |
52 doc.write("<div style='left:200px; top:100px; width:100px; height:100px;
position:absolute; background:green;'></div>"); | 52 doc.write("<div style='left:200px; top:100px; width:100px; height:100px;
position:absolute; background:green;'></div>"); |
53 doc.write("<div style='left:300px; top:100px; width:100px; height:100px;
position:absolute; background:blue;'></div>"); | 53 doc.write("<div style='left:300px; top:100px; width:100px; height:100px;
position:absolute; background:blue;'></div>"); |
54 doc.write("<div style='left:400px; top:100px; width:100px; height:100px;
position:absolute; background:green;'></div>"); | 54 doc.write("<div style='left:400px; top:100px; width:100px; height:100px;
position:absolute; background:green;'></div>"); |
55 doc.close(); | 55 doc.close(); |
56 frame.contentDocument.body.style.width = "2000px"; | 56 frame.contentDocument.body.style.width = "2000px"; |
57 frame.contentDocument.body.style.height = "2000px"; | 57 frame.contentDocument.body.style.height = "2000px"; |
58 </script> | 58 </script> |
59 </body> | 59 </body> |
60 </html> | 60 </html> |
OLD | NEW |