6 curated questions
CSS & Rendering
Layout, painting, compositing, typography, and responsive design.
- 01foundation · 8 min
When should you choose Flexbox versus Grid?
Choose based on one-dimensional flow, two-dimensional track relationships, intrinsic sizing, and content behavior.
- 02intermediate · 9 min
How do you design responsive components without hard-coding every viewport?
Use fluid constraints, intrinsic layout, content-driven breakpoints, and container queries where appropriate.
- 03intermediate · 10 min
How does CSS determine the containing block for positioned elements?
Understand normal flow, absolute positioning, fixed positioning, and containing-block-establishing properties.
- 04intermediate · 11 min
How does the CSS cascade choose the winning declaration?
Reason through origin, importance, cascade layers, specificity, scoping proximity, and source order.
- 05intermediate · 14 min
What actually causes style and layout thrashing?
Invalidation, forced synchronous layout, paint cost, and the practical rules that keep interactions smooth.
- 06intermediate · 10 min
Why does a large z-index sometimes fail to place an element on top?
Understand stacking contexts as atomic painting groups rather than a global numeric z-index scale.