blob: 7117baad970be2b32f3ea114b59a94bf5659d3c9 (
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
|
<!DOCTYPE html>
<!--
This test verifies that content is visible when the viewport is larger than the initial containing block.
-->
<script>
internals.settings.setViewportEnabled(true);
internals.settings.setViewportMetaEnabled(true);
</script>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<style>
::-webkit-scrollbar {
width: 0px;
height: 0px;
}
body {
width: 1000px;
height: 1000px;
margin: 0;
}
.box {
position: absolute;
left: 800px;
top: 600px;
width: 100px;
height: 100px;
background-color: #8f8;
}
</style>
<meta name="viewport" content="width=800, minimum-scale=0.8, initial-scale=1, maximum-scale=1.25">
<div class="box"></div>
<script>
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
runAfterLayoutAndPaint(function() {
internals.setPageScaleFactor(0.8);
if (window.testRunner)
testRunner.notifyDone();
});
</script>
|