1
0
Fork 0
firefox/testing/web-platform/tests/css/css-position/sticky-dialog.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

15 lines
611 B
HTML

<!DOCTYPE html>
<title>position:sticky computes to position:absolute</title>
<link rel="help" href="https://drafts.csswg.org/css-position-4/#top-styling">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<dialog style="position: sticky"></dialog>
<script>
test(() => {
const dialog = document.querySelector('dialog');
assert_equals(getComputedStyle(dialog).position, 'sticky');
dialog.showModal();
assert_equals(getComputedStyle(dialog).position, 'absolute');
}, 'Once in the top-layer position:sticky computes to position:absolute');
</script>