diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/fixed-position-child-with-contain-ancestor.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/fixed-position-child-with-contain-ancestor.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/fixed-position-child-with-contain-ancestor.html b/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/fixed-position-child-with-contain-ancestor.html new file mode 100644 index 0000000000..5ee64fc1d9 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/interactive-elements/the-dialog-element/fixed-position-child-with-contain-ancestor.html @@ -0,0 +1,27 @@ +<!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; +} +#dialog { + outline: 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> |