blob: f0f1b4482b01944f34362068a3052492f39d2b57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<html>
<head>
<style>
::-webkit-scrollbar {
width: 0px;
height: 0px;
}
</style>
<script>
window.enablePixelTesting = true;
function scroll() {
window.scrollTo(100,100);
}
function applyScaleFactor() {
var scaleFactor = 2.0;
if (window.internals)
internals.setPageScaleFactor(scaleFactor);
}
function test() {
// Scroll before applying page scale so we scroll the layout viewport.
scroll();
applyScaleFactor();
}
</script>
<script src="../../resources/js-test.js"></script>
</head>
<body style="width:2000px; height:2000px; margin:0px;" onload="test();">
<div style="position: fixed; top: -100px; left: -100px; z-index: 1">
<div style="left:0; top:0; width:100px; height:100px; position:absolute; background:yellow;"></div>
<div style="left:100px; top:0; width:100px; height:100px; position:absolute; background:green;"></div>
<div style="left:0; top:100px; width:100px; height:100px; position:absolute; background:green;"></div>
<div style="left:100px; top:100px; width:100px; height:100px; position:absolute; background:black;"></div>
</div>
<div style="left:0; top:0; width:100px; height:100px; position:absolute; background:yellow;"></div>
<div style="left:100px; top:0; width:100px; height:100px; position:absolute; background:green;"></div>
<div style="left:200px; top:0; width:100px; height:100px; position:absolute; background:blue;"></div>
<div style="left:0; top:100px; width:100px; height:100px; position:absolute; background: green;"></div>
<div style="left:100px; top:100px; width:100px; height:100px; position:absolute; background:blue;"></div>
<div style="left:200px; top:100px; width:100px; height:100px; position:absolute; background:yellow;"></div>
<div style="left:0; top:200px; width:100px; height:100px; position:absolute; background:blue;"></div>
<div style="left:100px; top:200px; width:100px; height:100px; position:absolute; background:yellow;"></div>
<div style="left:200px; top:200px; width:100px; height:100px; position:absolute; background:green;"></div>
</body>
</html>
|