I spent some hours isolating the bug. But I'd still like to understand it.
Below is the smallest amount of code I could replicate the bug into:
<div style='display: inline-flex;'>
<img width=100% src='foo.jpg'>
</div>
I changed the image name and path to foo.jpg for the sake of the snippet, but everything else is exactly the same as what output the following.
Mobile:
Desktop (mobile simulated):
Desktop (normal):
So, what's happening here? Am I doing something improper? Is there a "correct" way to write this snippet such that all browsers output it into the correct aspect ratio?
Update:
I've found a "solution" but I'm leaving this here as an unanswered question, because the solution is ugly. (Ugly code, anyway. The UI looks perfect.) All I need to do is wrap it in a div, like so:
<div style='display: inline-flex;'>
<div>
<img width=100% src='foo.jpg'>
</div>
</div>
I hope a solution less ugly than this exists.


