W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2016

Re: [csswg-drafts] [css-values] cap-height unit?

From: SelenIT via GitHub <sysbot+gh@w3.org>
Date: Sat, 05 Nov 2016 21:19:15 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-258641334-1478380754-sysbot+gh@w3.org>
There is also the [CSS Line Grid 
module](https://drafts.csswg.org/css-line-grid/) that also provides a 
CSS mechanism for vertical rhythm (including baseline snapping to 
regular grid lines).

But I believe that having better access to the font metrics from CSS 
would have more use cases other than that. For example, it can be 
aligning the icon with text (both top and bottom) or removing extra 
vertical spacing before text (e.g. in the approach described [in this 
article](https://medium.com/eightshapes-llc/space-in-design-systems-188bcbae0d62#9406))
 without having to use magic numbers for each particular font.

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/660#issuecomment-258641334 
using your GitHub account
Received on Saturday, 5 November 2016 21:19:21 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:05 UTC