
notecss
Fit width text in 1 line of CSS:
h1 {
text-grow: per-line scale;
}
Prototype available in Canary 165

Fit width text in 1 line of CSS:
h1 {
text-grow: per-line scale;
}
Prototype available in Canary 165
Want!John Allsopp
Finally time to put Fitty to rest rikschennink.github.io/fitty/Rik Schennink
Can we set the maximum number of characters per line length?. Do you have any links to the spec please?Dean Leigh
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 noteAdam Argyle
Oddly the link on mobile just took me to github home (works on desktop). I was wondering if we could set min, clamp, max characters (maybe using ch units?) to achieve ideal line lengths.Dean Leigh
You mean Canary 145+?Boğaç Güven
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.Nmn
I need this ????Sam Rose
Until then... <fit-text>Hello Web Components</fit-text> fit-text.github.io 566 Bytes gzippedDanny Engelman ????????️????️
fit-text.github.io 566 BYTES gzipped ????Danny Engelman ????????️????️
@argyleink Whoa.
Felix