title: scale(0.01) shows parent's background color between children - how to prevent this?
body: <p>When a very large element scaled down, it shows it's background between children elements.
  How can I prevent that from happening?</p>
  <p><a href="https://i.stack.imgur.com/lvjvo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lvjvo.png" alt="enter image description here" /></a></p>
  <p>The expected result is a solid green square</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-js lang-js prettyprint-override"><code>/* adding 100 children */
  for(let i = 0, div = document.querySelector(".parent"), child = document.createElement("div"); i &lt; 100; i++)
    div.appendChild(child.cloneNode());</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.parent
  {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    width: fit-content;
    background-color: red;
    transform-origin: top left;
    transform: scale(0.01);
  }
  
  .parent &gt; *
  {
    width: 2048px;
    height: 2048px;
    background-color: green;
    margin: 0;
    border: 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="parent"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>What I'm trying to do is fit a div into window, which contains a series of images, arranged into a grid, which together make a large image. And allow user zoom in/out. At first I was changing size of children, which worked fine, but with poor performance, now I'm trying use <code>scale()</code> on parent and see if it would work better.</p>