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-clamp
property 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 new line-clamp
property 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, because display: block
prevents -webkit-line-clamp
from working.)
So what do you think should happen?
Poll
Voting ended 30 October at 8:09.
@andreu seems to me like the old one should be completely ignored if the new one is present (regardless of order of appearance)
i believe that's how it works for standard scrollbar styling vs the older -webkit prefixed selectors; i use this example because it's closer to line-clamp than other prefixed properties in terms of behavioral difference