03-16-2024 04:59 PM
I do not know if this would be the right place to have this discussion. It is not really a bug or support request, but more of a small "what the H-E-Double-Hockey-Sticks is going on?"
I am playing around with CSS and web design. Currently, to do that spiffy ellipsing thing when a block of text is too long, we are supposed to use -webkit-line-clamp, along with -webkit-box-orient while we wait for CSS4 to be fully implemented; at least that is my rudimentary understanding of the property. However, the CSS3 documentation, along with Firefox's Developer Tools, as well as VS Code, indicate that -webkit-box-orient has been deprecated and should not be used. However, the actual line-clamp property coming in CSS4 is not yet supported, and the only way for it to work is to use the deprecated property.
So, my question is: why has this property been deprecated before the full implementation of the new property? Should Firefox (and other browsers) remove the deprecated warning from -webkit-box-orient until the full line-clamp spec is developed?
03-17-2024 08:45 AM
A lot of things that are deprecated are still in wide use. The MDN article for box-orient says it has been superseded by flexbox. Whether that is suitable for your application, I don't know.
09-25-2024 04:29 AM
Unfortunately, w/o using the "deprecated" `-webkit-box-orient` attribute, the line clamping just won't work 🤷🏻♂️. It even says that on the -webkit-line-clamp MDN page:
> It only works in combination with the display property set to -webkit-box or -webkit-inline-box and the -webkit-box-orient property set to vertical
However, it doesn't seem to have a non-deprecated alternative yet... Right?