Weird Layout Issue with Flex Inside Grid – Overflow Bug or Just Me?

I’ve been stuck on a layout bug that’s honestly driving me a bit crazy. It’s not a beginner issue—more of one of those edge cases that shouldn’t be happening but somehow is.

Here’s the setup:

I’m using a CSS Grid layout as the main structure, and inside one of the grid items, there’s a flex container. Everything is pretty standard, but what’s strange is:

  • In Chrome, a flex item inside the grid cell is overflowing its container slightly, even though overflow: hidden is explicitly set on the parent.
  • In Firefox, the same layout behaves perfectly—no overflow, no scrollbars, clean as expected.
  • I’ve also noticed the browser defaulting to min-width: auto in places I wouldn’t expect, which seems to mess with alignment and sizing even when I set width: 100% manually.

I’ve stripped it down, checked for padding/margin issues, reset box-sizing, and even tested with a clean HTML/CSS structure—same behavior. No JS involved, just pure CSS.

At this point, I’m wondering if this is a rendering inconsistency between browsers or if there’s something subtle I’m overlooking. Has anyone else run into something like this with Flexbox inside Grid layouts?

Happy to share a code snippet if it helps, but I figured I’d check if this rings any bells before I dive into making a reduced test case.

it is normal to have different results on different browsers, they have different implementations

can you share the code so we can reproduce the issue?