I encountered the following strange situation that I recreated in the following example:
.relative {
position: relative;
}
.absolute {
position: absolute;
left: 50%;
top: 100%;
}
a:active {
filter: brightness(130%);
}
<div class="relative">
<a href="//google.com"><img class="absolute" src="https://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Sternbergia_lutea_showing_the_different_parts_of_the_flower.JPG/130px-Sternbergia_lutea_showing_the_different_parts_of_the_flower.JPG" /></a>
</div>
On click mousedown event triggers :active
pseudo class having that filter
property while the image loses it's absolute position and as a result the link is not even followed. I couldn't find anything about it anywhere, does anyone know why this is happening?