Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Grid: repeat() with an integer count in grid-template-columns</title>
<link rel="author" title="Sammy Gill" href="mailto:sammy.gill@apple.com">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="repeat(4, 25px) in grid-template-columns creates four 25px column tracks.">
<style>
.grid {
display: grid;
width: 100px;
height: 100px;
background: red;
grid-template-columns: repeat(4, 25px);
grid-template-rows: 100px;
}
.grid > div {
background: green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div class="grid">
<div></div>
<div></div>
<div></div>
<div></div>
</div>