Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<style>
.grid {
display: grid;
grid-template-columns: 50px 100px;
grid-template-rows: 30px 100px;
}
.box {
grid-column: 2;
grid-row: 2;
background: green;
}
</style>
<p>Test that anchor() and anchor-size() resolve relative to the grid area
containing block. There should be a green square with no red.</p>
<div class="grid">
<div class="box"></div>
</div>