forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
narrow-iframe-flattened.html
30 lines (25 loc) · 1.38 KB
/
narrow-iframe-flattened.html
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=800">
<style type="text/css">
body { width: 800px; margin: 0; overflow-y: hidden; }
</style>
<script type="text/javascript">
if (window.internals) {
window.internals.settings.setTextAutosizingEnabled(true);
window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
} else if (window.console && console.warn) {
console.warn("This test depends on the Text Autosizing setting being true, so run it in DumpRenderTree, or manually enable Text Autosizing, and either use a mobile device with 320px device-width (like Nexus S or iPhone), or define HACK_FORCE_TEXT_AUTOSIZING_ON_DESKTOP.");
}
if (window.testRunner)
testRunner.setFrameFlatteningEnabled(true);
</script>
</head>
<body>
<iframe style="width: 50%; height: 50%; border: 0" src='data:text/html,
<html><body style="margin: 0; overflow-y: hidden"><div style="width: 1600px">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div></body></html>'>
</body>
</html>