News for hackers. Stuff that matters.
Re:How to avoid layout shifts caused by web fonts by michaelcampbell on Sunday January 30, 2022 @08:06AM (#30136843)
> superfluous or not a good idea any more, causing more harm than they solve.

Can you expand on why?

Re:How to avoid layout shifts caused by web fonts by pville on Sunday January 30, 2022 @08:53AM (#30137196)
Firefox has left me scratching my head a few times, I think they limit the amount of fallback fonts to resist fingerprinting. Long lists like these will get cut short. Text you intended to be monospace might not be rendered as such as the "monospace" at the very end was never reached.
Re:How to avoid layout shifts caused by web fonts by chrismorgan on Sunday January 30, 2022 @07:08PM (#30142732)
I haven’t ever encountered that, and would expect the limit to be rather long (certainly no less than 32 elements, probably far longer) if there is such a limit. What there is is whitelisting, only exposing certain fonts in order to reduce font list fingerprinting: https://bugzilla.mozilla.org/show_bug.cgi?id=1121643.
Re:How to avoid layout shifts caused by web fonts by michaelcampbell on Sunday January 30, 2022 @09:21AM (#30137416)
Huh, ok, never experienced that but that is probably just due to you and I going to different sites. I do use FF as my daily non-work driver though.