Consider a page with only a text "foo". I would like the text to take as much width as possible or 30% of the height. I don't want the text to be stretched and I don't want any js.
Setting font-size to 30vmin
is not satisfying, since it doesn't care about the width.
If I assume a fixed aspect ratio, it is possible to do it with svg/viewport, but I would like to be able to use different texts, like "foo" and "foobar", without having to change anything.
This is manageable with images or svg shapes, but I can't do it with text.