You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding is LCP is supposed to factor in the intrinsic sizes of images and not consider the rendered size for LCP in cases where the image is stretched or enlarged (e.g. a 1px transparent gif).
But as currently spec'ed, the natural width and height of the image are set after3.5 sub-item 3:
If exposedElement is not null, call the potentially add a LargestContentfulPaint entry algorithm with intersectionRect, imageRequest, renderTime, loadTime, element, and document.
At this point in the algorithm, intersectionRect has only considered the visual width and height, not the intrinsic width and height, thus 3 sub-item 9 in the LCP spec will report the visual size, which I do not believe is the intention.
Let size be width*height.
The text was updated successfully, but these errors were encountered:
One other note. The current Chrome implementation doesn't consider image scaling of CSS background images.
I believe the intention is to have scaled background images report the same as they would if they were an <img> tag, so whatever language is used to report these to LCP should also address background images resized via the background-size property.
My understanding is LCP is supposed to factor in the intrinsic sizes of images and not consider the rendered size for LCP in cases where the image is stretched or enlarged (e.g. a 1px transparent gif).
But as currently spec'ed, the natural width and height of the image are set after 3.5 sub-item 3:
At this point in the algorithm,
intersectionRect
has only considered the visual width and height, not the intrinsic width and height, thus 3 sub-item 9 in the LCP spec will report the visual size, which I do not believe is the intention.The text was updated successfully, but these errors were encountered: