Skip to content

Instantly share code, notes, and snippets.

@SelenIT
Forked from kizu/dabblet.css
Created May 13, 2015 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SelenIT/3b91b713f8a6db0a50d2 to your computer and use it in GitHub Desktop.
Save SelenIT/3b91b713f8a6db0a50d2 to your computer and use it in GitHub Desktop.
Demo of Firefox inline-flex bug
/* Demo of Firefox inline-flex bug */
.baseline-wrapper {
overflow: auto;
white-space: nowrap;
}
.baseline-wrapper:before {
content: "";
position: relative;
display: inline-block;
height: 1px;
width: 100%;
margin-right: -100%;
background: red;
}
.inline-flex {
display: -ms-inline-flexbox;
display: -webkit-inline-flex;
display: inline-flex;
vertical-align: baseline;
padding: 20px 10px;
border: 1px solid lime;
}
.inline-flex:nth-child(3) {
display: -moz-inline-box;
}
<div class="baseline-wrapper">
<div class="inline-flex">
I'm an inline-flex
</div>
<div class="inline-flex">
I'm an inline-flex<br/>
With a second line
</div>
<div class="inline-flex" style="width: 7em; overflow: auto;">
I'm an inline-flex with an overflow auto
</div>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment