I couldn't find a short name for the spec, so let me know if there is one.
This change would be useful both for contracting things so they don't exceed a parent height and spreading them out to fit the parent height. I don't know what the best way to go about doing this would be. Here are some ideas:
-
Add either auto or flex keyword to line-height that will cause the text to vertically fit the container it's in, whether it require a contraction or expansion.
-
Make minmax() accessible for line-height.
-
Implement a function similar to fit-content().