Learn

CSS size-adjust for @font-face

Web

As a web font loads, you can now adjust its scale, to normalize the document font sizes and prevent layout shift when switching between fonts Consider the following demo where the font-size is a consistent 64 px, and the only difference between each of these headers is the font-family.

Visit Site

CSS size-adjust for @font-face
Preload responsive imagesWeb Component testing in practiceWeb What testing isWeb The testing environmentWeb Generative AI: Create new contentWeb Building the main navigation for a websiteWeb Clever Polypane Debugging Features I'm LovingCss Tricks Position Sticky and Table HeadersCss Tricks Pseudo-Randomly Adding Illustrations with CSS | CSS-TricksCss Tricks System UIconsCss Tricks The failed promise of Web ComponentsCss Tricks CSS Hell | CSS-TricksCss Tricks Creating Color Themes With Custom Properties, HSL, and a Little calc()Css Tricks Server-Side React RenderingCss Tricks Svelte for the Experienced React DevCss Tricks Multiple Class / ID and Class SelectorsCss Tricks Scaling Organizations Should Consider Building a Website Backed by a CRM PlatformCss Tricks Develop, Preview, TestCss Tricks 4 Ways to Animate the Color of a Text Link on HoverCss Tricks Some Things You Oughta Know When Working with Viewport UnitsCss Tricks