Skip to content

Instantly share code, notes, and snippets.

@Munter
Created December 8, 2014 10:41
Show Gist options
  • Save Munter/1648c13d7e5969d51f03 to your computer and use it in GitHub Desktop.
Save Munter/1648c13d7e5969d51f03 to your computer and use it in GitHub Desktop.
Firefox v34 flexbox auto width bug
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>flexbox firefox v34</title>
<style>
.flexy {
display: flex;
flex-direction: row;
padding: 10px;
background: #eee;
width: 600px;
min-height: 200px;
margin: 10px auto;
}
.flexy > * {
outline: 1px dotted red;
background: #ddd;
}
.flexy aside {
flex: 0 0 200px;
}
.flexy main {
flex: 1 1;
}
h1 {
background: #ccc;
}
.scrolly {
overflow: auto;
}
</style>
</head>
<body>
<section class="flexy">
<aside>p</aside>
<main>
<h1>Hello flexbox</h1>
</main>
</section>
<section class="flexy">
<aside></aside>
<main>
<article class="scrolly">
<h1 style="width: 600px">Hello flexbox</h1>
</article>
</main>
</section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment