I am using -webkit-line-clamp: 2 to limit the number of lines appearing in an ionic4 app, but it does not comes up as expected on initial load. Instead, it comes up when I edit the css using inspect in chrome. Is there any workaround to fix it? The css used is:
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
-webkit-box-orient: vertical;