title: Flexbox with rotated text
body: <p>I am trying to create a CSS widget component, using flexbox.</p>
  
  <p>The component has a header (which should have rotated text), and a content area.</p>
  
  <p>Both the header and content should fill the height of the parent container, the header should be 15px width, and the content then stretch to fill the remainder.</p>
  
  <p>So far, I get the content to work 100%, but for some reason the header does not fill the height of the parent container.</p>
  
  <p>I have this so far:</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>.widget {
    height: 200px;
    width: 200px;
    border: 1px solid #ddd;
    background-color: #eee;
    display: flex;
  }
  .widget-header {
    background-color: #1976D2;
    color: #fff;
    transform: rotate(-90deg);
    border: 1px solid red;
    font-size: 10px;
    flex: 0;
    height: 15px;
    align-self: center;
    text-align: center;
  }
  .widget-content {
    border: 1px solid blue;
    flex: 1;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="widget"&gt;
    &lt;div class="widget-header"&gt;order summary&lt;/div&gt;
    &lt;div class="widget-content"&gt;
      &lt;p&gt;some text here&lt;/p&gt;
      &lt;p&gt;some more text ...&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>CodePen: <a href="http://codepen.io/go4cas/pen/XpryQR" rel="noreferrer">http://codepen.io/go4cas/pen/XpryQR</a></p>