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

Re: [csswg-drafts] [css-overflow] It should be detectable whether an element ellipsize text (#4123)

From: blidblid via GitHub <sysbot+gh@w3.org>
Date: Tue, 23 Jul 2019 11:14:51 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-514166292-1563880490-sysbot+gh@w3.org>
Nice @emilio, I updated the codepen with your idea. Hover the ellipsized text to see the result.


Setting ```$0.style.maxWidth = 'max-content';``` and then doing ```$0.getBoundingClientRect();``` does give fractional accuracy on overflowing text.

GitHub Notification of comment by blidblid
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4123#issuecomment-514166292 using your GitHub account
Received on Tuesday, 23 July 2019 11:15:00 UTC

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