From: Ardis Lu Date: Thu, 14 Dec 2023 06:38:30 +0000 (-0800) Subject: Use px instead of ch X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=eb1f44edc7517eac60d16f2233cb4e9835254571;p=css-for-line-clamp-ellipsis Use px instead of ch Reduces cumulative layout shift due to font swap --- diff --git a/index.html b/index.html index 0537ff6..b90a0cd 100644 --- a/index.html +++ b/index.html @@ -78,7 +78,7 @@ } p { - inline-size: min(51ch, 100%); + inline-size: min(800px, 100%); } p:not(.line-clamp, .dynamic-line-clamp) {