New post: “Cap-Height Vertical Align”.
https://blog.kizu.dev/cap-height-align/
The new year is here, and, with it, a season where people put out their CSS wishlists for the future.
One thing caught my attention in @tylersticka’s list: an ability to vertically align to the middle of the font’s cap-height.
I am thrilled to report that there are at least two relatively ok workarounds available in the most recent browsers, courtesy of the new `cap` unit!
As usual, credits:
- @tylersticka (wishlist, and the original CSSWG issue!)
- @xgebi (I mentioned her wishlist from December!)
- @michaeltaranto (Capsize!)
- @pepelsbey (pointed me towards the Baseline URL on MDN)