HTML & CSS · Senior · Question 45 of 75
Which approach to fluid typography best respects the user's font scaling?
- 1
font-size: 3vwwith no limits - the font grows with the window - ✓Correct answer:
clamp(1rem, 0.8rem + 1vw, 1.5rem)- smooth growth within bounds - 3A fixed pixel
font-sizeat each breakpoint
Explanation
Pure vw ignores the user's font size setting and barely changes on zoom - a WCAG problem (resize text up to 200%). Mixing rem + vw inside clamp() gives smooth scaling while still responding to user settings. Pixel steps work but jump between breakpoints.