Toot

Written by Andreu Botella :verified_enby: on 2024-10-23 at 08:08

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:

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?

[#]css #CSSWG

=> More informations about this toot | View the thread | More toots from andreu@andreubotella.com

Mentions

Tags

=> View css tag | View csswg tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113355712237001935
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
235.594079 milliseconds
Gemini-to-HTML Time
0.69603 milliseconds

This content has been proxied by September (3851b).