You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<metaname="assert" content="This test checks that an element with 'contain: content' acts as containing block for its absolutely positioned descendants.">
<style>
div
{
width:100px;
}
div#contain-content
{
background-color: red;
contain: content;
height:100px;
}
div.abspos
{
background-color: green;
height:50px;
position: absolute;
right:0;
}
div#first-abspos
{
top:0px;
}
div#second-abspos
{
bottom:0px;
}
</style>
<body>
<p>Test passes if there is a filled green square and <strong>no red</strong>.