element-timing icon indicating copy to clipboard operation
element-timing copied to clipboard

Should SVG be supported?

Open npm1 opened this issue 4 years ago • 1 comments

Currently we only support image elements inside SVG, but SVG can have other things. It would be good to think about whether we need to provide more support for SVG. To provide support we'd need to know at least:

  • How to compute the intrinsic size of the SVG? Not sure if this is well-defined for SVGs, as I don't think we could just use their declared size.
  • What timestamp(s) to expose. Is render time after load still good enough here?

npm1 avatar Feb 08 '21 18:02 npm1

Yes, <svg> elements should be supported

They’re visual elements and may well be the true LCP element e.g. where a chart is rendered via SVG

andydavies avatar Apr 13 '23 19:04 andydavies