w3c / largest-contentful-paint

Specification for the LargestContentfulPaint API
https://w3c.github.io/largest-contentful-paint/
Other
89 stars 17 forks source link

Should border-images be considered contentful #107

Open sohomdatta1 opened 2 years ago

sohomdatta1 commented 2 years ago

Currently LCP only considers background-images to be contentful elements per the elements-exposed section of the element timing spec.

Given that border-images can explicitly load images from URLs and can have an effect on the paint time if included, would it make sense to classify paints, that paint a border-image as contentful ? (Given that they appear to behave similar to a background-image in most cases)

yoavweiss commented 2 years ago

Intuitively, I'd think that border images' goal is different than background images (more decorative). Might be interesting to look at some examples.

/cc @clelland

clelland commented 2 years ago

I'll take a look in HTTP Archive to see what real-world uses of this look like, and we'll see if it looks like an avenue for abuse that needs to be addresses.