W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2020

[csswg-drafts] [css-fonts] Reduce layout shift via @font-face descriptor(s) overriding inline spacing (#5533)

From: Xiaocheng Hu via GitHub <sysbot+gh@w3.org>
Date: Fri, 18 Sep 2020 23:10:25 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-704703716-1600470624-sysbot+gh@w3.org>
xiaochengh has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts] Reduce layout shift via @font-face descriptor(s) overriding inline spacing  ==
In #4792, we agreed to add @font-face descriptors to override ascent, descent and line gap of a font, which allows us to match the line height metrics between fallback and primary font, and hence, reduce layout shift.

In https://github.com/w3c/csswg-drafts/issues/4792#issuecomment-689099191 I also proposed `advance-override` to override the inline spacing and further reduce layout shift. The proposal still has several problems and hence remains under discussion.

So I opened this issue to specifically discuss if we should add new descriptor(s) to @font-face to override the inline spacing for matching text widths and reducing layout shift; And if we should, how should the new descriptor(s) work.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5533 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 18 September 2020 23:10:27 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:16 UTC