Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-grid-1/">
<link rel="match" href="grid-item-border-padding-001-ref.html">
<style>
.grid {
display: grid;
width: 100px;
height: 100px;
grid-template-columns: 100px;
grid-template-rows: 100px;
border: 10px solid black;
}
.item {
width: 50px;
height: 50px;
grid-row: 1/2;
background-color: green;
}
</style>
<p>Test passes if the green box is inside the black border at the top-left of the grid content area.</p>
<div class="grid">
<div class="item"></div>
</div>