What is the purpose of the .stretched-link::after CSS style?

Alain Knaff alain at knaff.lu
Sun Dec 31 10:40:04 UTC 2023


Hi,

I hope this is the right place to report issues with the Openstreetmap
Web site, including CSS.

If not, please point me to the right place.

Now to the problem: while trying to find out the exact
latitude/longitude coordinates of a building, I searched it on
openstreetmap, and then did rightclick->displayAddress

It did display the coordinates all right, on top of the address.

However, I could not select them for pasting.

After popping up Firefox' CSS inspector, I noticed the following CSS:

.stretched-link::after {
 position:absolute;
 top:0;
 right:0;
 bottom:0;
 left:0;
 z-index:1;
 content:""
}
in line 6841 of
https://www.openstreetmap.org/assets/screen-ltr-d45e4e42c8ecf263e361e5307c720ac021606e889f685a9099bba86827e383e2.css

At first sight, the only thing this does is to cover the coordinates
with an empty div, thus making it impossible to interact with them. On
the face of it, this looks like malicious mischief (clickjacking) or is
there any legitimate purpose to this?

Thanks,

Alain



More information about the rails-dev mailing list