Mastodon Feed: Post

Mastodon Feed

Reblogged by slightlyoff@toot.cafe ("Alex Russell"):

kizu@front-end.social ("Roma Komarov") wrote:

I wrote a new article: “Fit-to-Width Text: A New Technique”.

https://kizu.dev/fit-to-width/

Registered custom properties are now available in all modern browsers.

Using some pre-existing techniques based on them and complex container query length units, I solved a years-long problem of fitting text to the width of a container, hopefully paving the path towards a proper native implementation.

#CSS #Typography

Attachments: