[Feature proposal] Add -webkit-box
display type
#1516
Replies: 7 comments 2 replies
-
That's the old flexbox spec, right? Can't you just use |
Beta Was this translation helpful? Give feedback.
-
Hey @hipstermojo 👋 This plugin that provides text clamping uitlitie susing |
Beta Was this translation helpful? Give feedback.
-
This certainly looks like it addresses what I need. Is there a reason why this is not in the core library? |
Beta Was this translation helpful? Give feedback.
-
@hipstermojo Biggest reason is just only have a limited amount of resources. If I work on adding line clamp support then I'm not working on something else, like dark mode or animation or gradients or whatever. New features take a lot of time because getting the API right is very hard. I'd like to add line-clamp eventually but until I am able to prioritize it above other projects it's best to use a plugin. |
Beta Was this translation helpful? Give feedback.
-
Fair enough. I guess I'll work with what's available. I guess this issue can be closed then? |
Beta Was this translation helpful? Give feedback.
-
For those who come across this issue, note that Tailwind has already implemented the |
Beta Was this translation helpful? Give feedback.
-
If you're hiding an element and showing it with a line clamp, it doesn't work with the following:
But since line-clamp already has
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I use
display: -webkit-box
when doing text clamping and I can't hide that HTML element usingnone
from Tailwind. I think it would be cool if-webkit-box
could be in Tailwind so I wouldn't need this. However,-webkit-box
is not supported in IE so I don't know if you might interested in adding it.Beta Was this translation helpful? Give feedback.
All reactions