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

If this were a feature, I think it'd be best if it was a CSS function. (similar to `calc` or `minmax`)

Something like `font-size: fit(8px, 48px);` where `8px` is the minimum font-size and `48px` is the maximum font-size.

I think using a function, other than being useful for minimum and maximum sizes, relays the gravity of using the feature since surely it'll have _some_ performance issues in extreme cases.

I'd love to see this in CSS!



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

Received on Wednesday, 11 April 2018 11:06:31 UTC