Get the latest tech news

Font-size-adjust Is Useful


In this article, I will describe a recent addition to CSS, the font-size-adjust property. I am also making a bold claim that everyone in the world misunderstands the usefulness of this property, including Google, MDN, and CSS Specification itself. (Just to clarify, no, I am not a web designer and I have no idea what I am talking about).

I am also making a bold claim that everyone in the world misunderstands the usefulness of this property, including Google, MDN, and CSS Specification itself. If I specify font-size-adjust: ex-height 0.5, I ask the browser to scale the font such that the letter “x” is exactly half of the box. Make sure to vendor the fonts used, specify@font-face inline in a<style> tag inside the<head> to avoid extra round trips, add font-display: block; and FOUC is solved for most people.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of adjust

adjust