Created
December 8, 2014 10:41
-
-
Save Munter/1648c13d7e5969d51f03 to your computer and use it in GitHub Desktop.
Firefox v34 flexbox auto width bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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