title: Image resizing distorted in Safari on iOS
body: <p>My goal is to stretch an image proportionally according to the page width. I use the following HTML:</p>
  
  <pre><code>&lt;div class="idv algn_c"&gt;
    &lt;img src="image-path.png" draggable="false"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>With the following CSS:</p>
  
  <pre><code>.idv{
      display: flex;
  }
  .idv img{
      max-width: 100%;
      height: auto;
      user-select: none;
  }
  .algn_c{
      justify-content: center;
      margin: 1.5em auto;
  }
  </code></pre>
  
  <p>This works really well on Chrome, FF, Edge and scales the image nicely (according to its aspect ratio):</p>
  
  <p><a href="https://i.stack.imgur.com/Q7nou.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Q7nou.png" alt="enter image description here"></a></p>
  
  <p>But when I try it on my iPhone in Safari (iOS v.13.4.1) it gives me this distorted image:</p>
  
  <p><a href="https://i.stack.imgur.com/DDpD3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DDpD3.jpg" alt="enter image description here"></a></p>
  
  <p>What am I doing wrong there?</p>
  
  <p><em>EDIT: Just realized that I didn't mention that the document has the following meta-tag:</em></p>
  
  <pre><code>&lt;meta name="viewport" content="width=device-width, initial-scale=1.0"/&gt;
  </code></pre>