<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Grid Layout Test: Support for 'grid-auto-columns' and 'grid-auto-rows' accepting track listing as value</title>
<link rel="help" href="http://www.w3.org/TR/css-grid-1/#auto-tracks">
<link rel="match" href="../reference/grid-support-grid-auto-columns-rows-002-ref.html">
<link rel="author" title="Rachel Andrew" href="mailto:me@rachelandrew.co.uk" />
<style>
    #grid {
        display: grid;
        grid-auto-columns: 25px 50px;
        grid-auto-rows: 40px 30px;
    }

    #first-column-first-row {
        grid-column: 1;
        grid-row: 1;
        background-color: purple;
    }

    #second-column-first-row {
        grid-column: 2;
        grid-row: 1;
        background-color: orange;
    }

    #first-column-second-row {
        grid-column: 1;
        grid-row: 2;
        background-color: green;
    }

    #second-column-second-row {
        grid-column: 2;
        grid-row: 2;
        background-color: pink;
    }

    #first-and-second-column-third-row {
        grid-column: 1 / span 2;
        grid-row: 3;
        background-color: silver;
    }

    #third-column-all-rows {
        grid-column: 3;
        grid-row: 1 / span 3;
        background-color: blue;
    }
</style>

<p>The test passes if it has the same visual effect as reference.</p>
<div id="grid">
    <div id="first-column-first-row"></div>
    <div id="second-column-first-row"></div>
    <div id="first-column-second-row"></div>
    <div id="second-column-second-row"></div>
    <div id="first-and-second-column-third-row"></div>
    <div id="third-column-all-rows"></div>
</div>