1
0
Fork 0
firefox/testing/web-platform/tests/css/css-align/abspos/align-self-with-flex-grid-parent-ref.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

30 lines
669 B
HTML

<!DOCTYPE html>
<link rel="author" title="David Shin" href="mailto:dshin@mozilla.com">
<link rel="help" href="https://drafts.csswg.org/css-position-3/#abspos-layout">
<meta name="assert" content="Ensures that absolutely positioned elements with non-auto inset are w.r.t. absolute contain block.">
<style>
.container {
position: relative;
width: 300px;
height: 300px;
background: purple;
}
.abs {
position: absolute;
width: 100px;
height: 100px;
inset: 0;
align-self: center;
justify-self: center;
background: pink;
}
</style>
<div class="container">
<div class="abs"></div>
</div>
<br>
<div class="container">
<div class="abs"></div>
</div>