Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=317420 (#60734) -- wpt-commits: cf778b8a442696db52dabd10b736f555bd6c0952 wpt-pr: 60734
25 lines
554 B
HTML
25 lines
554 B
HTML
<!DOCTYPE html>
|
|
<link rel="help" href="https://drafts.csswg.org/css-grid-1/">
|
|
<link rel="match" href="grid-item-border-padding-003-ref.html">
|
|
<style>
|
|
.grid {
|
|
display: grid;
|
|
width: 100px;
|
|
height: 100px;
|
|
grid-template-columns: 100px;
|
|
grid-template-rows: 100px;
|
|
border: 5px solid black;
|
|
padding: 10px;
|
|
}
|
|
.item {
|
|
width: 50px;
|
|
height: 50px;
|
|
grid-row: 1/2;
|
|
background-color: green;
|
|
}
|
|
</style>
|
|
<p>Test passes if the green box is inset by border and padding.</p>
|
|
<div class="grid">
|
|
<div class="item"></div>
|
|
</div>
|