1
0
Fork 0
firefox/testing/web-platform/tests/css/css-align/abspos/align-self-stretch-auto-margins.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

29 lines
650 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11195#issuecomment-2824879710">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
<style>
.container {
position: relative;
width: 200px;
height: 200px;
top: -50px;
left: -50px;
}
.abspos {
position: absolute;
inset: 50px;
margin: auto 0 auto 0;
align-self: stretch;
background: green;
}
.abspos::before {
content: '';
width: 50px;
height: 50px;
display: block;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="container">
<div class="abspos"></div>
</div>