CSS Production Pitfalls: 36 Bugs Interviewers Love to Ask About
Senior frontend interviews rarely ask what a CSS property does. They show you a layout that broke in production and ask why. This workbook collects 36 of those real CSS failures, the ones that show up in code reviews, bug reports and interview rounds.
Every pitfall gets two pages:
• A one-page infographic you can read in 30 seconds: the broken code, the fix, and the follow-up question an interviewer is likely to ask next.
• A full explanation page: what’s wrong, why it happens, the fix with code, a model answer to the follow-up, and a drill to run against your own codebase.
What’s covered:
• Cascade and specificity: the !important arms race, unlayered CSS beating every layer, shorthands that reset your longhands
• Box model and layout: margin collapse, flex items that won’t shrink, the Grid 1fr blowout, height: 100% that does nothing
• Positioning and stacking: why z-index: 9999 still loses, transforms that trap position: fixed, sticky that doesn’t stick
• Responsive design and units: 100vh on mobile, overlapping breakpoints, fixed px fonts that ignore user settings
• Performance and animation: animating layout properties, will-change everywhere, render-blocking CSS, web font layout jumps
• Accessibility, theming and maintainability: outline: none, low contrast, reduced motion, dark mode without color-scheme
Also inside: a pitfall map of all 36 bugs, fillable drill boxes, and a review tracker to tick off each pitfall once you can explain it without notes.
For frontend developers preparing for mid-level to senior interviews. The companion to the CSS Interview Workbook: the workbook covers every concept, and this book shows the bugs those concepts cause in production.
PDF · instant download