blob: 6b14784193f50507eb62124c9903c71121e88c0f [file] [edit]
<!DOCTYPE html>
<html>
<head>
<title>fullscreen-enter-bottom-padding-animation</title>
<style>
html, body { padding: 0; margin: 0; }
#target {
padding-bottom: 500px;
width: 100px;
height: 100px;
}
</style>
<script src="full-screen-test.js"></script>
<script>
window.addEventListener('load', async event => {
run("testRunner.dumpFullScreenCallbacks()");
internals.withUserGesture(() => { run('target.webkitRequestFullScreen()'); });
await waitFor(target, 'webkitfullscreenchange');
await sleepFor(10);
if (window.testRunner) { await testRunner.updatePresentation() }
run('document.webkitExitFullscreen()');
await waitFor(target, 'webkitfullscreenchange');
await sleepFor(10);
endTest();
});
</script>
</head>
<body>
<div id="target">
</div>
</body>
</html>