I am having an issue with layouts and css between
firefox - 112.0.2
and
chromium - 112.0.5615.165
I have created a small self contained sample on codepen here https://codepen.io/alex116/pen/JjmZPJX
.dashboard {
display:flex;
justify-content: center;
align-items: center;
}
.graphic {
display:flex;
justify-content: center;
align-items: center;
}
.image {
width: 100%;
}
<div class="dashboard">
<div class="container">
<div class="graphic">
<img class="image" src="https://upload.wikimedia.org/wikipedia/commons/0/02/SVG_logo.svg">
</div>
</div>
</div>
In chromium I see the svg image while in firefox the image has a width of 0px.
Why does that happen in firefox? Is this a bug in either browser? Am I writing invalid css?
I don't want to change the html structure but I'll gladly modify the css
This is part of a bigger project I'm working on and I've already reduced the issue to this snippet. There are more vertical columns in this layout but I've removed them to get to the heart of the issue.