<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 - Flexbox child considers itself equal to &quot;width: 100%&quot; instead &quot;max-width&quot; property"
   href="https://bugs.webkit.org/show_bug.cgi?id=168226">168226</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Flexbox child considers itself equal to &quot;width: 100%&quot; instead &quot;max-width&quot; property
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>Safari 10
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </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>sushko&#64;outlook.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=301337" name="attach_301337" title="Screens from Safari and other browsers">attachment 301337</a> <a href="attachment.cgi?id=301337&amp;action=edit" title="Screens from Safari and other browsers">[details]</a></span>
Screens from Safari and other browsers

It turns out that this flexbox child blocks considers itself equal to width: 100% (as set in CSS), but visually they width equal to max-width property (also set in CSS).
I found this bug in all Safari: iOS, macOS, Technology Preview on macOS.

Live demo — <a href="http://codepen.io/sashasushko/pen/oBJdrX">http://codepen.io/sashasushko/pen/oBJdrX</a>

See attached screens to understand how blocks behave in other browsers and how it in Safari.</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>