-Webkit-Line-Clamp Not Working in Angular

Sami C.
1 min readFeb 12, 2019

--

When working with the webkit line clamp property in css, I noticed that the

-webkit-box-orient: vertical;

was stripped away from my css during compile time. Apparently autoprefixer strips this away when bundling your css. You can tell autoprefixer to not remove the property, by simply adding

/* autoprefixer: ignore next */-webkit-box-orient: vertical;

/* autoprefixer: ignore next */: disable Autoprefixer only for the next property or next rule selector or at-rule parameters (but not rule/at‑rule body).

Happy coding!

--

--

Sami C.
Sami C.

Written by Sami C.

Freelance Software Engineer

No responses yet