Skip to content

[Help] How to achieve text truncation on multiple lines using -webkit-line-clamp. #1078

Answered by aspirisen
juanchigallego asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, the fact that some property is marked as deprecated doesn't affect runtime, you can use it as is.
About vendor prefixes, there is another name notation, so instead of -webkit-line-clamp2 you should use WebkitLineClamp: 2,.
More info in the docs https://vanilla-extract.style/documentation/styling/#vendor-prefixes

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@juanchigallego
Comment options

Answer selected by juanchigallego
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants