title: Css Grid layout in mm (for printing)
body: <p>I'm trying to create a grid layout to print items on a page. The units should be in millimeters but the result is far from correct.
  I'm using css grid layout to use flow since my items are random count but should be displayed 2x8 on each page.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>    @media all {
        @page {
          size: 210mm 297mm;
          margin-top: 18mm;
          margin-bottom: 18mm;
          margin-left: 4mm;
          margin-right: 4mm;
        }
        .passcodeCell {
          width: 100mm;
          height: 70mm;
          border-style: dashed;
          align-content: center;
          position: relative;
        }
        .passcodeGrid {
          display: grid;
          grid-template-columns: 1fr 1fr;
          grid-template-rows: 1fr 1fr 1fr 1fr;
          grid-column-gap: 3mm;
          align-items: center;
        }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    &lt;div class="passcodeGrid"&gt;
        &lt;div class="passcodeCell"&gt;&lt;/div&gt;
        &lt;div class="passcodeCell"&gt;&lt;/div&gt;
        &lt;div class="passcodeCell"&gt;&lt;/div&gt;
        &lt;div class="passcodeCell"&gt;&lt;/div&gt;
        &lt;div class="passcodeCell"&gt;&lt;/div&gt;
        &lt;div class="passcodeCell"&gt;&lt;/div&gt;
        &lt;div class="passcodeCell"&gt;&lt;/div&gt;
        &lt;div class="passcodeCell"&gt;&lt;/div&gt;
        &lt;div class="passcodeCell"&gt;&lt;/div&gt;
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The result should be a grid 2x8 cells on a A4 page (210x297mm), each cells should be 100mmx70mm but I get a grid 2x5.9 with cells 70mmx50mm. I'm using Chrome.
  What's wrong with my layout? Is it possible to define a precise layout for printing in CSS?</p>