Fit width text in 1 line of CSS `text-grow: per-line scale;` nerdy.dev/css-text-grow (prototype in Canary 165+)
55 reposts332 likes
Fit width text in 1 line of CSS `text-grow: per-line scale;` nerdy.dev/css-text-grow (prototype in Canary 165+)
55 reposts332 likes
So like the titles on nmn.sh but without SVG and manual ratio calculations? That would be nice. I also like that it can re-flow text unlike the trick by Kizu with nested containers.
Until then... <fit-text>Hello Web Components</fit-text> fit-text.github.io 566 Bytes gzipped
an explainer holds the latest details github.com/explainers-b... room for comments too. the CSSWG is a good place to jump in also, link to that is in the blog note
Does this play nicely with developer.mozilla.org/en-US/docs/W... ? (Please say it does 🤞)