Re: [csswg-drafts] [css-values-5] [css-overflow-4]How does `line-clamp` transition from `<integer>` to `auto` or `none`? (#10502)

I don't know too much about `interpolate-size`, but the way that property is specified, it wouldn't apply to `line-clamp`, because the spec text specifically mentions interpolating between a length (such as `3px`, but not `3`), and an intrinsic size keyword. Although `auto` is an intrinsic size keyword for the `height` property because it denotes a size, `auto` for `line-clamp` does not denote a size.

Things get more complicated when you consider that the number of lines that `auto` corresponds to depends on the `height` and/or `max-height` properties. If those properties also transition during the `line-clamp` transition, then the transition will not look smooth. In particular, since the transition from `max-height: none` to `max-height: 200px` is discrete, if `line-clamp: 3` transitions to `line-clamp: auto` at the same time, then the number of lines before clamp might very well jump in the middle of the transition.

That said, I'm not familiar enough with transitions to know what the right behavior would be here.

-- 
GitHub Notification of comment by andreubotella
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10502#issuecomment-2413276359 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 15 October 2024 08:49:28 UTC