mdn/content

font-size-adjust: Add note about scaling behavior of font family weights and styles

已關閉

#42,726 建立於 2026年1月10日

 (1 則留言) (0 個反應) (0 位負責人)Markdown (23,221 個分叉)batch import
Content:CSShelp wanted

倉庫指標

星標
 (10,947 顆星)
PR 合併指標
 (平均合併 7天 3小時) (30 天內合併 147 個 PR)

描述

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/font-size-adjust

What information was incorrect, unhelpful, or incomplete?

I think it would be helpful to add a note clarifying that font size adjustments affect font weights, styles, and variants of the same font family.

Many font families have slightly different ex-heights for each of their different weights in the family. So a paragraph with a bolded word in it may not scale proportionally as expected with its counterparts of the same font family

What did you expect to see?

I had thought this property would scale sizes only between font families rather than also between every weight/style/variant of the same font family.

Others might find it helpful if this caveat is noted in the docs.

Do you have anything more you want to share?

Here's an example video showing what happens to a bolded word of the same font family (-apple-system) when you toggle html { font-size-adjust: ex-height from-font; } on and off in Firefox (v146.0.1)

https://github.com/user-attachments/assets/8e94daa3-7428-488d-a7c2-84a463d39305


And here are two screenshots comparing the ex-heights of normal and bold weight for -apple-system:

Normal weight ⤵

Bold weight ⤵

MDN metadata

貢獻者指南