fit-tolerance
Limited availability11% of usersExperimental
In a grid lanes layout, each item goes into the shortest lane. fit-tolerance sets how close two lanes must be in length to count as a tie. Tied lanes fill in order, so items stay closer to source order. The default, normal, works out to 1em, and infinite places items strictly in order. Safari 26.4 supports it, but only under its earlier name, flow-tolerance. No browser accepts the name fit-tolerance yet.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Chrome, Edge or Firefox yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
normal- Inherited
- No
- Applies to
- grid lanes containers
- Animation type
- length
Quick example
.gallery {
display: grid-lanes;
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
gap: 1rem;
flow-tolerance: 3em;
fit-tolerance: 3em;
}Values
normalinfinite<length-percentage>fit-tolerance browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage11%of people can use this89% use a browser without it.
Browsers
27.2+Mobile
27.2+iOS