haikuwebkit/LayoutTests/fast/forms/ios/focus-input-in-fixed.html

44 lines
888 B
HTML

<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] -->
<html>
<head>
<meta name="viewport" content="initial-scale=0.5">
<style>
.fixed {
position: fixed;
height: 200px;
width: 400px;
top: 100px;
left: 10px;
background-color: silver;
}
input[type="text"] {
margin: 20px;
}
</style>
<script src="resources/zooming-test-utils.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function doTest()
{
testZoomAfterTap(document.getElementById('input'), 10, 10);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="fixed">
<input id="input" type="text">
</div>
</body>
</html>