W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2020

[csswg-drafts] Provide options for flexible line height, fitting text vertically to the container (#5515)

From: Benny Hinrichs via GitHub <sysbot+gh@w3.org>
Date: Tue, 15 Sep 2020 21:44:29 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-702294821-1600206268-sysbot+gh@w3.org>
BennyHinrichs has just created a new issue for https://github.com/w3c/csswg-drafts:

== Provide options for flexible line height, fitting text vertically to the container ==
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()`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5515 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 15 September 2020 21:44:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:16 UTC