title: Flex items overflowing container in Safari
body: <p>For some reason, flex items are not staying inside the container in Safari.</p>
  
  <p>Here's what the layout looks like in Chrome and Firefox:</p>
  
  <p><a href="https://i.stack.imgur.com/zDanj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zDanj.png" alt="enter image description here"></a></p>
  
  <p>Here's what it looks like in Safari:</p>
  
  <p><a href="https://i.stack.imgur.com/y4MPv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y4MPv.png" alt="enter image description here"></a></p>
  
  <p>Here's my code:</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>#div1 {
    background: black;
    width: 250px;
    height: 600px;
    display: flex;
    flex-direction: column;
    padding-bottom: 5px
  }
  
  #div2 {
    background: pink;
    color: #FFF;
    width: 240px;
    height: 200px
  }
  
  #div3 {
    background: blue;
    color: #FFF;
    width: 240px;
    height: 100%;
    position: relative
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="div1"&gt;
    &lt;div id="div2"&gt;test&lt;/div&gt;
    &lt;div id="div3"&gt;test2&lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>