I have a question about image rendering. What occurs when we try to fit a large image into a small container?
Consider, for example, creating an HTML page with a 100x100 px image on a device with a pixel ratio of 2.
Situation 1: Placing the image inside a 100x100 px div
A div sized at 100x100 px matches the device's pixel capacity, resulting in a perfect fit for the image without issues.
Situation 2: Putting the image in a 50x50 px div
The available device pixels are insufficient for displaying the entire image.
What happens in this scenario? Does the system automatically downsample the image?