title: Prevent elements from stretching to 100% width of their flex container
body: <p>I have inline-block elements whose width stretches to 100% of their flexbox containers in IE11 and Safari. However, in Chrome and Firefox, the width is the width of the content.</p>
  
  <p>This <a href="https://jsfiddle.net/t203g9k9/" rel="nofollow">jsfiddle</a> illustrates the issue.</p>
  
  <p>Using <code>max-width: -webkit-max-content;</code> in Safari, the inline-block elements' widths are restored to the width of the content. <code>max-content</code> is not available in IE11 according to <a href="http://caniuse.com/#search=max-content" rel="nofollow">caniuse.com</a>.</p>
  
  <p>Is there a way to achieve this behavior in IE11?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="true" data-console="true" data-babel="false">
  <div class="snippet-code snippet-currently-hidden">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.row {
    display: flex;
  }
  section {
    display: flex;
    flex-direction: column;
    flex: 1 1 0px;
  }
  .btn {
    display: inline-block;
    position: relative;
    background: black;
    color: white;
    padding: 10px 40px 20px 15px;
    text-decoration: none;
    border: 1px solid black;
    margin: auto auto 10px 0px;
  }
  .btn:after {
    display: block;
    height: 10px;
    width: 10px;
    border-radius: 5px;
    position: absolute;
    right: 11px;
    bottom: 11px;
    content: "";
    background: white;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="row"&gt;
    &lt;section&gt;
      &lt;p&gt;Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.&lt;/p&gt;
      &lt;a href class="btn"&gt;inline-block&lt;/a&gt;
    &lt;/section&gt;
    &lt;section&gt;
      &lt;p&gt;p into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum pa&lt;/p&gt;
      &lt;a href class="btn"&gt;inline-block&lt;/a&gt;
    &lt;/section&gt;
    &lt;section&gt;
      &lt;p&gt;It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content
        here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy.
        Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).&lt;/p&gt;
      &lt;a href class="btn"&gt;This is an&lt;br&gt;inline-block too&lt;/a&gt;
    &lt;/section&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>