Why does flex-wrap not move items onto a new line?

Flex wrap may appear not to work when the container has no constrained inline size, the items are allowed to shrink enough to stay on one line or wrapping is applied to the wrong element. flex-wrap: wrap permits new lines; it does not require them when items still fit.
Check that the element with display: flex also receives the wrap declaration. A nested wrapper can make the visible items children of another element, so they are not flex items of the container being debugged. Inspect the layout tree in developer tools.
Items with flex: 1 1 0 can shrink aggressively and remain on one row. Give them a meaningful flex basis or minimum size to define when wrapping should occur:
.list {
display: flex;
flex-wrap: wrap;
gap: 1rem;
}
.list > * {
flex: 1 1 18rem;
}
If the container expands to fit its contents, such as an inline-flex element without a width constraint, it may never run out of space. Constrain it to the parent with an appropriate width or max-width. Also check non-wrapping text and fixed child widths that create overflow instead of a useful line break.
Test at widths around the intended transition and with different item counts. If exact columns and row alignment matter, Grid with repeat(auto-fit, minmax()) may describe the layout more directly than Flexbox wrapping. Recheck the component after font, spacing or browser-support changes. Responsive failures often return when a shared token changes, so the test should cover the limiting content state instead of one ideal screenshot.