Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<title>Test that a fixed positioned child of a dialog is aligned to the viewport</title>
<head>
<link rel="stylesheet" href="resources/dialog.css">
</head>
<style>
</style>
<body>
<div class="pseudodialog" style="position: fixed">
Dialog should be centered.
</div>
<div style="position: fixed; top: 0px; left: 0px">This fixed positioned element is aligned to viewport top-left.</div>
</div>
</body>
</html>