- From: Andreu Botella via GitHub <sysbot+gh@w3.org>
- Date: Mon, 17 Feb 2025 11:19:32 +0000
- To: public-css-archive@w3.org
> Yes, it might help us to attach a button style feature after the ellipsis. This button is a very common pattern in actual web pages or components. In the example you show, this is not done using `(-webkit-)line-clamp`, but instead the text actually has an ellipsis. I think most uses of `-webkit-line-clamp` that do something like this (with the toggle button inside the line-clamp container, rather than in a parent) do so with `position: absolute`, and we recently resolved that that behavior should work if the abspos's containing block is the element with `-webkit-line-clamp` or an ancestor (#11379). That said, that wouldn't make it possible to have the toggle button inline with the text. So there's a use case to enable this. However, I think this would bring up a number of tricky issues to solve. It would also be best suited to the `continue: discard` version of line-clamp, rather than the `continue: collapse` variant I'm working on in the Chrome implementation (see #7708). -- GitHub Notification of comment by andreubotella Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11253#issuecomment-2662816623 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 17 February 2025 11:19:33 UTC