title: linear-gradient rendering issue firefox
body: <p>I'm trying to draw several grids of various sizes but I'm having an issue with Firefox - <code>linear-gradient</code> is breaking up for me in many places. </p>
  
  <p>It's working all fine on Google Chrome with any units provided (px/mm/%/rounded/float) but it's doing some funny stuff on Firefox. I've tried using different units/rounding/prefixed/3d hacks but none of this is working.</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>div {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: linear-gradient(to right, black 1px, transparent 1px),
      linear-gradient(to bottom, black 1px, transparent 1px);
    background-size: 5mm 5mm;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/yc6wz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yc6wz.jpg" alt="enter image description here"></a></p>