blob: 9d6eb2306534d5d2a30c5724abf11e994470b92c [file] [log] [blame] [edit]
<!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>