Join Nostr
2025-08-08 00:46:33 UTC

Šime Vidas on Nostr: `font-size: small` can be smaller than `font-size: smaller`. Both values make the ...

`font-size: small` can be smaller than `font-size: smaller`. Both values make the font-size smaller by a similar amount, but `small` is calculated relative to 1rem, while `smaller` is relative to 1em.

So if you’re in a heading where 1em is significantly larger than 1rem, `small` will be smaller than `smaller`.

Correction: `small` is relative to the user’s preferred font size directly. Changing the value of 1rem does not change `small`.