<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - DIV inside `display: flex` takes whole width (becomes larger than its content)"
   href="https://bugs.webkit.org/show_bug.cgi?id=169673">169673</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DIV inside `display: flex` takes whole width (becomes larger than its content)
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari Technology Preview
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>macOS 10.12
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>CSS
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>njke&#64;gmx.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=304499" name="attach_304499" title="Demo on Safari TP Release 25 (Safari 10.2, WebKit 12604.1.8.1.2)">attachment 304499</a> <a href="attachment.cgi?id=304499&amp;action=edit" title="Demo on Safari TP Release 25 (Safari 10.2, WebKit 12604.1.8.1.2)">[details]</a></span>
Demo on Safari TP Release 25 (Safari 10.2, WebKit 12604.1.8.1.2)

On Safari Technology Preview Release 25 (Safari 10.2, WebKit 12604.1.8.1.2) the DIV inside `display: flex` takes the whole width of it.

On other browsers DIV has the same size as its content.

Demo → <a href="http://codepen.io/njke/pen/QpqjaJ">http://codepen.io/njke/pen/QpqjaJ</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>