Re: [csswg-drafts] [css-fonts-4] Feature for making text always fit the width of its parent (#2528)

We now do have [`clamp()`](https://drafts.csswg.org/css-values/#comp-func) to specify lower and upper bounds. Alas, we can only reference character width (`ch`, `ic`) or height (`em`, `cap`) and viewport dimensions (`vw`, `vh` etc.), not line or box width, as units. So you could only approximate the result for an assumed number of characters per line. 

For the desired capability we would need new keywords or functions indeed. 

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2528#issuecomment-774442105 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 6 February 2021 10:19:52 UTC