I'm experimenting with the -webkit-line-clamp property (as detailed on https://css-tricks.com/almanac/properties/l/line-clamp/) but it appears to have issues when used with nested elements.
Here's the code snippet I am working with:
<html>
<body>
<div style="width:200px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
</p>
</div>
</body>
</html>
The content I need to apply the line clamp to is generated using quill.js and is enclosed within multiple p tags that cannot be modified. Any suggestions on how I can achieve the desired effect using -webkit-line-clamp or similar techniques?