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

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