title: Combine overflow-y: scroll with overflow-x: visible
body: <p>I have a div, that has flyout divs positioned absolute to the right. Its all working correctly but I need to add a max height to my main div. Since it will overflow, I add overflow-y scroll, but it messes everything up. It prevents my flyout divs from going outside of the main div, and places them inside with a horizontal scrollbar.</p>
  
  <p>I've mocked up an example:</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>.menu {
    height: 200px;
    max-height: 200px;
    width: 200px;
    background-color: red;
    margin-bottom: 50px;
  }
  
  .menu.overflow {
    overflow-y: scroll;
    background-color: purple;
    height: 150px;
    max-height: 150px;
  }
  
  .menu-item {
    height: 30px;
    width: 100%;
    background-color: blue;
    position: relative;
    margin-bottom: 10px;
    cursor: pointer;
  }
  
  .menu-item-flyout {
    display: none;
    width: 200px;
    height: 100px;
    position: absolute;
    left: 100%;
    background-color: green;
    top: 0;
  }
  
  .menu-item:hover .menu-item-flyout {
    display: block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!-- no overflow y scroll --&gt;
  
  working correctly:
  &lt;div class="menu"&gt;
    &lt;div class="menu-item"&gt;
      &lt;div class="menu-item-flyout"&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class="menu-item"&gt;
      &lt;div class="menu-item-flyout"&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class="menu-item"&gt;
      &lt;div class="menu-item-flyout"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;!-- overflow y scroll --&gt;
  
  This is not working. I want to add overflow y
  scroll to menu but it prevents the flyout
  
  &lt;div class="menu overflow"&gt;
    &lt;div class="menu-item"&gt;
      &lt;div class="menu-item-flyout"&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class="menu-item"&gt;
      &lt;div class="menu-item-flyout"&gt;&lt;/div&gt;
    &lt;/div&gt;
    
    &lt;div class="menu-item"&gt;
      &lt;div class="menu-item-flyout"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>