title: CSS Flexbox Gap - gap value affecting width calculation
body: <p>I am using flexbox and the new <code>gap</code> function to add some space between items. I am trying to have 4 items per row so have set item width to be <code>25%</code> like this...</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>.container {
    display: flex;
    max-width: 800px;
    width: 100%;
    background: gold;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .item {
    width: 25%;
    background: teal;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
  
    &lt;div class="item"&gt;
      Item 1
    &lt;/div&gt;
    
    &lt;div class="item"&gt;
      Item 2
    &lt;/div&gt;
    
    &lt;div class="item"&gt;
      Item 3
    &lt;/div&gt;
    
    &lt;div class="item"&gt;
      Item 4
    &lt;/div&gt;
    
    &lt;div class="item"&gt;
      Item 5
    &lt;/div&gt;
    
    &lt;div class="item"&gt;
      Item 6
    &lt;/div&gt;
    
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>But this is giving me 3 items per row instead, I assume it is because it is taking the <code>gap</code> value into account when calculating widths.</p>
  <p>How can I work around this?</p>