As the hover
event is a TrustedEvent, it's like a bit complicated to turn around it, to try to simulate it, etc.
I'm looking for a way to detect, when an element get hovered, if his style properties are changing.
Here is a snippet that could illustrate a basic case.
.change-when-hovering:hover {
color: blue;
}
<p>
It won't have any style changes, we don't want to console.log the element when hovering
</p>
<p class="change-when-hovering">
It will have style changes, we want to console.log this element when hovering BECAUSE his style properties has changed (and not because he has the 'change-when-hovering' class)
</p>
Thanks in advance !!