Created
February 8, 2014 16:15
-
-
Save kizu/8886089 to your computer and use it in GitHub Desktop.
Demo of Firefox inline-flex 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
/* 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: 10px; | |
border: 1px solid lime; | |
} |
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
<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> |
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
// alert('Hello world!'); |
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
{"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