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
PerformanceEntryPerformanceElementTiming
Properties
| Name | Description |
|---|---|
| Element | Gets the element, or null when it is no longer exposed for paint timing (it was removed from its document). |
| Id | Gets the id of the element when the entry was created. |
| Identifier | Gets the value of the elementtiming attribute of the element. |
| IntersectionRect | Gets the visible part of the content in the viewport, in CSS pixels. |
| LoadTime | Gets the time the image finished loading, or 0 for a text. |
| NaturalHeight | Gets the natural height of the image, or 0 for a text. |
| NaturalWidth | Gets the natural width of the image, or 0 for a text. |
| PaintTime | Gets the time of the end of the rendering update that painted the content. |
| PresentationTime | Gets the time the frame was presented to the user: null, the presentation time is not supported. |
| RenderTime | Gets the time the content was painted (the default paint timestamp of the rendering update). |
| Url | Gets the URL of the image (the first 100 characters of a data: URL), or the empty string for a text. |
Element
PaintTiming.csGets the element, or null when it is no longer exposed for paint timing (it was removed from its document).
public Element? Element { get; }Property value
See also
Gets the id of the element when the entry was created.
public new string Id { get; }Identifier
PaintTiming.csGets the value of the elementtiming attribute of the element.
public string Identifier { get; }Property value
See also
IntersectionRect
PaintTiming.csGets the visible part of the content in the viewport, in CSS pixels.
public DomRectReadOnly IntersectionRect { get; }LoadTime
PaintTiming.csGets the time the image finished loading, or 0 for a text.
public double LoadTime { get; }Property value
See also
NaturalHeight
PaintTiming.csGets the natural height of the image, or 0 for a text.
public uint NaturalHeight { get; }Property value
See also
NaturalWidth
PaintTiming.csGets the natural width of the image, or 0 for a text.
public uint NaturalWidth { get; }Property value
See also
PaintTime
PaintTiming.csGets the time of the end of the rendering update that painted the content.
public double PaintTime { get; }PresentationTime
PaintTiming.csGets the time the frame was presented to the user: null, the presentation time is not supported.
public double? PresentationTime { get; }Property value
See also
RenderTime
PaintTiming.csGets the time the content was painted (the default paint timestamp of the rendering update).
public double RenderTime { get; }Property value
See also
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; }