title: flex items overlapping in Safari (iPad)
body: <p>I cannot solve problem with simple task:</p>
  
  <ul>
  <li>Container is 100% width but with padding-right and box-sizing overflow</li>
  <li>Container is flex row</li>
  <li>Container has two children with dynamic content</li>
  <li>First child has size of content</li>
  <li>Second child takes the rest of width</li>
  </ul>
  
  <p>Expected result:</p>
  
  <p><a href="https://i.stack.imgur.com/zxHOZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zxHOZ.jpg" alt="enter image description here"></a></p>
  
  <p>iPad result:</p>
  
  <p><a href="https://i.stack.imgur.com/4k7QO.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4k7QO.jpg" alt="enter image description here"></a></p>
  
  <p>Example is <a href="https://codepen.io/anon/pen/zaMwvr" rel="nofollow noreferrer">https://codepen.io/anon/pen/zaMwvr</a></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>#wrap {
    width: 100%;
    border: 1px dashed orangered;
    box-sizing: border-box;
    padding-right: 300px;
    position: relative;
  }
  
  #padding-view {
    width: 300px;
    position: absolute;
    background: coral;
    right: 0;
    height: 100%;
  }
  
  #flex {
    display: flex;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="wrap"&gt;
    &lt;div id="padding-view"&gt;&lt;/div&gt;
    &lt;div id="flex"&gt;
      &lt;div id="dynamic"&gt;LALALCALCULATEDDYNAMICLY&lt;/div&gt;
      &lt;div id="rest"&gt;{Long text here}&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>