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

Re: [csswg-drafts] [css-inline-3] Tight vs loose fit into a line box (#5239)

From: Dave Cramer via GitHub <sysbot+gh@w3.org>
Date: Wed, 22 Jul 2020 21:13:22 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-662699696-1595452401-sysbot+gh@w3.org>
<img width="1017" alt="superscript" src="https://user-images.githubusercontent.com/5687700/88228838-c184d200-cc3d-11ea-907e-6a629dd9ce3e.png">

I went back and looked at the case of an ordinary superscript in text. Even with `text-edge: text` or `text-edge: cap` it seems like the `sup` box intrudes into the half-leading of the previous line. I think you'd have to set `text-edge: ex` to get the effect in the illustration? 

Yellow = ascent/descent bounds for superscript
Green = top/bottom half-leading for superscript
Blue = top/bottom half-leading for regular text
Ascent and cap height metrics for superscript are in red (data is from Adobe Caslon Pro)

Cap height and ex height are shown in red in the diagram (info is from Adobe Caslon Pro). 

GitHub Notification of comment by dauwhe
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5239#issuecomment-662699696 using your GitHub account
Received on Wednesday, 22 July 2020 21:13:24 UTC

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