29 lines
650 B
HTML
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>
|