-
Notifications
You must be signed in to change notification settings - Fork 496
Firefox doesn’t correctly support display: flex in buttons yet #178
Comments
A hacky fix for this in FF is: <button>
<!-- TODO: follow up with this FF bug and unwrap these spans
from this div if it's fixed. -->
<div style="display: flex">
<span>Test</span>
<span>Another</span>
</div>
</button> |
I think this has just been fixed: |
@mkurz That would be great. |
This is already listed in the README under flexbug 9: |
At least for button, only IE and Edge can currently render flex. Not sure which part is |
@nanaya sorry, it's not clear to me from your example what's still not working. Can you say exactly what the issue is, and in which browsers you're seeing it? |
Just tested on chrome 62 and firefox 57. Also probably should've said render flex "correctly". |
Hmmm, the fact that these render identically in both Chrome and Firefox makes me a bit skeptical that there isn't more going on here. Either way, do you have browser bugs for this issue? If so then I can add them to the list, which would let readers know that not all bugs have been fixed. |
Looks like it's this one for firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1397768 |
Added in #246. |
Firefox Nightly 52.
Given HTML code:
Firefox would render it as if elements in the button all had
display: block
in their style and were stacked vertically top to bottom, regardless of theflex-direction
of the parent button element.Please close this: f642b54
The text was updated successfully, but these errors were encountered: