I encountered a peculiar issue. A certain website displays an image with a 5px solid border, but when I adjust the Windows scale settings to 125%, there is a noticeable gap between the image and the border.
https://i.sstatic.net/FWLIN.png
https://i.sstatic.net/KKCAk.png
img {
border: 5px solid red;
}
<img src="https://via.placeholder.com/290x140/000000/FFFFFF/?text=IPaddress.net">
In my testing on Google Chrome v91, it appears that Chrome has difficulty handling subpixels when zooming or scaling.
Moreover, I have observed that the white line is actually the background color of the image itself, where white seems to be the default setting.
Despite trying various adjustments, I have not been able to find a solution. Any assistance would be greatly appreciated.