Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-align/gaps/gap-normal-used-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Box Alignment Test: used value of *-gap:normal on grid</title>
<meta assert="The used value of row-gap and column-gap normal for grids is 0">
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" />
<style>
#grid {
colum-gap: normal;
row-gap: normal;
display: grid;
grid-template-columns: 50px 50px;
grid-template-rows: 50px 50px;
position: absolute;
}
#grid * { background: green; }
#red {
width: 100px;
height: 100px;
background: red;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id=grid><span></span><span></span><span></span><span></span></div>
<div id=red></div>