Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<p>Test passes if the green abspos box (blue outline) sits at the top-left of the grid area (red outline matches the grid item), inset by the grid container's padding (black outline).</p>
<div style="position: relative; width: 240px; height: 240px; outline: 1px solid black;">
<div style="position: absolute; left: 20px; top: 20px; width: 200px; height: 200px; outline: 1px solid red;"></div>
<div style="position: absolute; left: 20px; top: 20px; width: 100px; height: 100px; background: green; outline: 1px solid blue;"></div>
</div>