A common CSS misconception: when you declare `font-family` on a child element with only one font value, the browser does not fall back to the parent's font stack if that font is unavailable. Instead, it falls back to the browser default (often Times New Roman), causing visual flashes or layout shifts. The fix is always to

4m read timeFrom csswizardry.com
Post cover image
Table of contents
font-family Fallbacks Are Self-ContainedWhy You Get a Flash of TimesThe Fix Is SimpleWhy This MattersClosing Thoughts
1 Comment

Sort: