From: Ardis Lu Date: Sun, 9 Apr 2023 03:14:45 +0000 (-0700) Subject: Use present tense X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=e0795b4269cde970b958e4bdbf404a230cabcfc5;p=css-for-line-clamp-ellipsis Use present tense --- diff --git a/index.html b/index.html index 39e56c1..a4e24bc 100644 --- a/index.html +++ b/index.html @@ -188,7 +188,7 @@ new ResizeObserver(_ => elem.style.setProperty('--lines', Math.floor(elem.client ullamcorper dignissim cras tincidunt lobortis feugiat vivamus.

Note that overflow: hidden will only hide lines that are completely cut off from - the container element. So if you resized the paragraph to cut through the middle of a line, the ellipsis will + the container element. So if you resize the paragraph to cut through the middle of a line, the ellipsis will appear in the line above it but the cut off line will still be visible. When resizing the element, you'll need to be careful to only resize it to mulitples of its line-height. This behavior appears to be a hard limitation of line-clamp.