Screenshot attached - https://i.imgur.com/YI27IZa.png
3 images, with 100% width under each other.
Grabbing code below, where images can be any random images for example of 800px x 1000px size . This will show 3 images under each other, opening up F12 chrome console switching to mobile mode, then grabbing edge and changing screen width slightly will randomly show 1px black gap between images (container background is black). I expected this to be because of "subpixel rendering" or float numbers in height/width of image which are calculated when I change screen resolution. Result of this is that on random mobile phones iphone or android depending on screen resolution there are appearing 1px gaps between these images.
I find it impossible to remove these gaps, be it object fit / flex / grid / display block / border box, I tried almost anything. What worked was to put margin-bottom: -1px . This removed gaps but, these images are sliced images of larger image, and when I do margin-bottom: -1px they do not match perfectly anymore. I tried to raise height of images manually by 1px or 2px it worked literally randomly so could not figure out any kind of JS script.
body {
margin: 0;
padding: 0;
}
#imageContainer {
background: black;
}
.imageWrapper img {
width: 100%;
display: block;
}
<div id="imageContainer">
<div class="imageWrapper">
<img src="https://placehold.co/600x400/0bf/fff?text=1" alt="Image 1">
</div>
<div class="imageWrapper">
<img src="https://placehold.co/600x400/f0b/fff?text=2" alt="Image 2">
</div>
<div class="imageWrapper">
<img src="https://placehold.co/600x400/bf0/fff?text=3" alt="Image 3">
</div>
</div>
UPDATE : Example video - https://www.youtube.com/watch?v=r_Y6GwDIsiQ Thanks to comments this seems to be related to pagezoom, and can be simulated also on android phones by doing any kind of zoom. What is intriguing is as shown on the video, iframe on stackowerflow is immune to this, was not able figure out why.