Diagnosis
What this finding means
A flex item keeps its automatic minimum size and cannot shrink around long content.
A finding is not a verdict. Check the displayed evidence and the design intent before changing production code.
Detection
How CSS Doctor detects it
- CSS Doctor isolates the pasted HTML and CSS in a sandboxed iframe.
- Static rules inspect source structure; runtime rules measure the rendered result.
- Evidence is ranked by intent, severity, confidence, affected area, and fix safety.
Before / After
Minimal example
Before review
.row { display: flex; }
.main { flex: 1; }Possible direction
.row { display: flex; }
.main { flex: 1; min-width: 0; }The example is a starting point, not a universal patch. CSS Doctor previews Tier A and B changes before applying them and never auto-applies Tier C guidance.
Limitations
Limits and manual checks
Components that must preserve intrinsic width may need a layout change.
- Production stylesheets not pasted into the tool are not fetched.
- JavaScript is never executed from user input.
- Verify the result at all breakpoints and with keyboard input.
Test this rule in Paste Lab
Your pasted source stays in this browser and is not added to the URL or analytics.
Open CSS Doctor