blob: ec16b0ba149d2e66e53e1b41ae2ddc7221181e04 [file] [log] [blame]
<!DOCTYPE html>
<html style="font-size: 16px">
<head>
<meta name="viewport" content="width=800">
<style>
body {
width: 800px;
margin: 0;
overflow-y: hidden;
}
</style>
<script>
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.");
}
</script>
</head>
<body>
<div>
This paragraph should be autosized to 40px computed font-size (16 * 800/320),
whereas the buttons below should be rendered at their default font size and
the accompanying text below should remain 16px.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
</div>
<div>
Submit button
<input type="submit" value="Find">
</div>
<div>
Simple button
<input type="button" value="Button">
</div>
<div>
Reset button
<input type="reset" value="Reset">
</div>
<div>
Inline button
<button>InlineButton</button>
</div>
</body>
</html>