I have a problem with text-highlighting,
There is a div cover absolute positioned on top of a paragraph. In the DOM structure they are cousins.
When highlighting the paragraph text underneath, once the cursor hovers over the cover, the entire paragraph gets highlighted automatically, how to stop this?
You can use
This removes normal pointer functionality from the element - highlight, hover, focus etc.
The CSS property pointer-events allows authors to control under what circumstances (if any) a particular graphic element can become the target of mouse events.