blob: 98835cb795fb0e4bce8f68f4f1bdbf5bd39614e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!DOCTYPE html>
<html>
<title>Test that a fixed positioned child of a dialog is aligned to the viewport</title>
<head>
<link rel="match" href="fixed-position-child-with-fixed-position-cb-ref.html">
<link rel="help" href="https://fullscreen.spec.whatwg.org/#new-stacking-layer">
<style>
::backdrop {
display: none;
}
</style>
</head>
<body>
<div style="contain: layout">
<dialog id="dialog">
Dialog should be centered.
<div style="position: fixed; top: 0px; left: 0px">This fixed positioned element is aligned to viewport top-left.</div>
</dialog>
</div>
<script>
dialog.showModal();
</script>
</body>
</html>
|