Start with two numbers when a photo preview looks blurry. After the image loads, read its naturalWidth and its getBoundingClientRect().width. The first is the intrinsic width in CSS pixels. The second is the width of the rendered box. Use an image with no border or transform for this check.
If the intrinsic width is 400 CSS pixels and the box is 600 CSS pixels wide, look for the layout rule that widens the preview. For an image with responsive sources, check currentSrc as well. It shows which resource the browser selected.
Put both widths and the viewport size in the bug report. That gives the next person enough information to reproduce the same layout.
This article was generated by AI.
Top comments (0)