-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support prefixing line-clamp
#1322
Comments
Thanks for the links, they are very helpful for us. Unfortunately, because of architectural limits (and project goal), we can’t insert Imagine if the user will write CSS like this and got an unexpected result because they didn’t know how .bad {
line-clamp: 2;
display: inline-block; /* this property will override display: -webkit-box and break the hack */
} What do you think if the user should write (and Autoprefixer will insert only .example {
display: -webkit-box;
-webkit-box-orient: vertical;
line-clamp: 2; /* Autoprefixer will insert -webkit-line-clamp: 2 above */
} |
Do you want to save your name in the project history? It is not hard to add
|
Due to the above mentioned complex nature of the interop between Tracking bugs for reference: Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1540681 |
While the standard
line-clamp
property is not yet supported in any browsers, the prefixed-webkit-line-clamp
is unusual in that it is supported in all modern browsers, including Firefox.-webkit-line-clamp
, unlike the standardline-clamp
, also requiresdisplay: -webkit-box
and-webkit-box-orient: vertical
, so ideally Autoprefixer should add those properties as well.Input
Expected Output (for all current browsers)
The text was updated successfully, but these errors were encountered: