Closed dashed closed 2 years ago
Good question, I believe the answer should be layout units. Perhaps we can add a clarification in the readme or the spec?
@npm1 That'll be helpful to clarify. Intuitively, it feels like it is pixels squared (px²); or layout units squared.
Oh yea the algorithm computing the rect is actually coming from Element Timing, so it does seem hard to reason about it. I can add some text to the explainer (the README) to make it clearer.
Are the units of
LargestContentfulPaint.size
in pixels?It's non-obvious to me from the spec that it is: https://wicg.github.io/largest-contentful-paint/#dom-largestcontentfulpaint-size