Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<title>position-area safe overflow alignment against viewport - non-overflowing LTR root</title>
<meta name=assert content="Test passes if an explicit 'safe' alignment is aligned as specified to the extent possible within an unscrollable LTR viewport.">
<link rel="match" href="position-area-overflow-icb-005-ltr-ref.html">
<style>
.anchor {
anchor-name: --foo;
border: solid orange 20px;
position: absolute;
margin: auto;
top: 50%;
left: 50%;
}
.above, .below, .left, .right {
border: solid blue 3px;
padding: 2px;
position: fixed;
position-anchor: --foo;
place-self: safe normal;
}
.above { position-area: top center; height: 60vh; margin-left: 20px; }
.below { position-area: bottom center; height: 60vh; margin-right: 20px; }
.left { position-area: left center; width: 60vw; margin-top: 20px; }
.right { position-area: right center; width: 60vw; margin-bottom: 20px; }
</style>
<div class=anchor></div>
<div class=above></div>
<div class=below></div>
<div class=left></div>
<div class=right></div>