Skip to content

LargestContentfulPaint has both renderTime and paintTime via the mixin. Are they different? #145

@smfr

Description

@smfr

https://w3c.github.io/largest-contentful-paint/#sec-largest-contentful-paint-interface has:

readonly attribute [DOMHighResTimeStamp](https://w3c.github.io/hr-time#dom-domhighrestimestamp) renderTime;

but also includes PaintTimingMixin which supplies paintTime, so there are two paint-time-related members.

https://w3c.github.io/paint-timing/#sec-PaintTimingMixin says:

To get the default paint timestamp for a paint timing info paintTimingInfo, return paintTimingInfo’s implementation-defined presentation time if it is non-null, otherwise paintTimingInfo’s rendering update end time.

LCP says:

The renderTime attribute must return the default paint timestamp given this’s paint timing info.

which is the same thing.

Why does renderTime exist?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions