andreu@andreubotella.com ("Andreu Botella :verified_enby:") wrote:
Hey! CSS developers! I want to hear from you.
I'm improving the way line clamping works in Chrome and in the specs. The existing
-webkit-line-clampproperty is a mess, because it will only do something if you have other properties (which are legacy versions of flexbox properties), and we can't fix that because of web compat. But we can add a newline-clampproperty without those issues!But right now I'm dealing with what should happen if you have both properties set on the same element:
display: block;line-clamp: 3;-webkit-line-clamp: 4;(Note that if we remove
line-clamp: 3, this wouldn't clamp, becausedisplay: blockprevents-webkit-line-clampfrom working.)So what do you think should happen?