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

Re: [csswg-drafts] [css-inline] textBottom property (#4582)

From: Ilya Streltsyn via GitHub <sysbot+gh@w3.org>
Date: Thu, 28 May 2020 11:32:58 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-635284393-1590665577-sysbot+gh@w3.org>
> It is just about to make vertical-align: baseline stronger

Unfortunately, not exactly. It would require significant revision of the way how CSS controls the vertical position of the glyphs ([which might be rather counter-intuitive](http://iamvdo.me/en/blog/css-font-metrics-line-height-and-vertical-align), I admit).

To some extent, for the single-line text, the example from the initial post seems to be achievable by setting the line-height to zero (to make both above-baseline and below-baseline parts of the text "stick out" from the container) and adding an inline-block placeholder pseudo-element to push the baseline down by the needed length ([example](https://codepen.io/SelenIT/pen/NWGZrWj)).

That said. this issue shows another example of authors' common need to access and control the exact geometric position of the rendered text and is likely related to #4792.

GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4582#issuecomment-635284393 using your GitHub account
Received on Thursday, 28 May 2020 11:33:00 UTC

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