I want to create a selection effect, similar to the selection made with a pen. those. has wavy tops and bottoms and a rough start and end, as in this figure.

What is the best way to do this in CSS? Is there any way to do this without using background images? Also, for it to work, the lines will be wrapped.
Ideally, the decision will be made by HTML, as shown below, and make it look like an image.
<p> <span class='green-highlight>So write with a combination of short, medium, and long sentences. Create a sound that pleases the reader ear. </span> <span class='pink-highlight'>Don't just write words. </span> <span class='yellow-highlight'>Write music. </span </p>
html css css3
chrisb
source share