PerformanceElementTiming Class

The paint of an image or of a text of an element with an elementtiming attribute (https://w3c.github.io/element-timing/#sec-performance-element-timing), reported to the element performance observers of its window.

public sealed class PerformanceElementTiming : PerformanceEntry
Inheritance
PerformanceEntry PerformanceElementTiming

Properties

NameDescription
ElementGets the element, or null when it is no longer exposed for paint timing (it was removed from its document).
IdGets the id of the element when the entry was created.
IdentifierGets the value of the elementtiming attribute of the element.
IntersectionRectGets the visible part of the content in the viewport, in CSS pixels.
LoadTimeGets the time the image finished loading, or 0 for a text.
NaturalHeightGets the natural height of the image, or 0 for a text.
NaturalWidthGets the natural width of the image, or 0 for a text.
PaintTimeGets the time of the end of the rendering update that painted the content.
PresentationTimeGets the time the frame was presented to the user: null, the presentation time is not supported.
RenderTimeGets the time the content was painted (the default paint timestamp of the rendering update).
UrlGets the URL of the image (the first 100 characters of a data: URL), or the empty string for a text.

Gets the element, or null when it is no longer exposed for paint timing (it was removed from its document).

public Element? Element { get; }

Gets the id of the element when the entry was created.

public new string Id { get; }

Identifier

PaintTiming.cs

Gets the value of the elementtiming attribute of the element.

public string Identifier { get; }

IntersectionRect

PaintTiming.cs

Gets the visible part of the content in the viewport, in CSS pixels.

public DomRectReadOnly IntersectionRect { get; }

Gets the time the image finished loading, or 0 for a text.

public double LoadTime { get; }

NaturalHeight

PaintTiming.cs

Gets the natural height of the image, or 0 for a text.

public uint NaturalHeight { get; }

NaturalWidth

PaintTiming.cs

Gets the natural width of the image, or 0 for a text.

public uint NaturalWidth { get; }

Gets the time of the end of the rendering update that painted the content.

public double PaintTime { get; }

PresentationTime

PaintTiming.cs

Gets the time the frame was presented to the user: null, the presentation time is not supported.

public double? PresentationTime { get; }

RenderTime

PaintTiming.cs

Gets the time the content was painted (the default paint timestamp of the rendering update).

public double RenderTime { get; }

Gets the URL of the image (the first 100 characters of a data: URL), or the empty string for a text.

public string Url { get; }