title: Proper use of flex properties when nesting flex containers
body: <p>I am having problems using flexbox properly and wanted to get some clarification on how nesting parent and child elements works.</p>
  <p>I know that the child inherits the parent's flex properties, but does that get reverted for any further descendants (e.g. 'grandchildren')? What is the proper usage of flexbox for that?</p>
  <p>In other words, do I have to apply <code>display: flex</code> to the child, too, for the <em>child's</em> children? Will that overwrite the first child's parent's flex properties?</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>.parent-container {
    display: flex;
    flex: 1 0 100%;
    background-color:yellow;
  }
  .child-container {
    flex: 1 1 50%
    background-color: blue;
  }
  .baby-of-child-container {
    flex: 1 1 50%;
    background-color: green;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class='parent-container'&gt;
    &lt;div class='child-container'&gt;
      &lt;div class='baby-of-child-container'&gt;child&lt;/div&gt;
      &lt;div class='baby-of-child-container'&gt;child&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class='child-container'&gt;
      &lt;div class='baby-of-child-container'&gt;child&lt;/div&gt;
      &lt;div class='baby-of-child-container'&gt;child&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>