w3c / largest-contentful-paint

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

Consider including SVG elements #84

Open npm1 opened 2 years ago

npm1 commented 2 years ago

Currently the API only includes image inside of SVG. We should include SVG elements as a whole. In order to do this, we'd need to answer some questions:

  1. What should be the rendering time of an SVG element?
  2. What should be the size for the LCP algorithm?
npm1 commented 2 years ago

Related issue (should make sure these APIs behave similarly when tracking similar types of content): https://github.com/WICG/element-timing/issues/56

yoavweiss commented 2 years ago

One interesting compication to take into account: SVG elements behave slightly different than SVG images, in that they can load other images. We should make sure that LCP takes that behavior into account, and considers the SVG image including resources it may have downloaded.

yoavweiss commented 1 year ago

Strong support for this last time we discussed it. Needs someone to pick up the task.