I want to create a page with a main area and a scrollable side area. When the page is too small, I want the side area to wrap below and the whole page to scroll instead. If possible I want to do this in pure CSS. I've come up with the following, which works in Chrome but not Safari. (In Safari, the whole page always scrolls.)
How do I fix this, and more importantly, have I misunderstood flexboxes somehow?
html, body, main {
height: 100%;
margin: 0;
}
main {
display: flex;
flex-flow: row wrap;
overflow: scroll;
}
content {
min-width: 600px;
flex: 9999 1 auto;
background-color: #ffa;
}
aside {
flex: 1 1 auto;
overflow: scroll;
background-color: #aff;
}
<main>
<content>
main
</content>
<aside>
side
1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10000<br>
1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10000<br>
</aside>
</main>
View full page to see responsive behavior, or see this fiddle.