Table of Contents

Class LayoutShiftAttribution

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The LayoutShiftAttribution interface provides debugging information about elements which have shifted.
[Value("LayoutShiftAttribution")]
public class LayoutShiftAttribution
Inheritance
LayoutShiftAttribution
Inherited Members

Remarks

Instances of LayoutShiftAttribution are returned in an array by calling Sources.

-Debug layout shifts
-Debug Web Vitals in the field

See also on MDN

Constructors

LayoutShiftAttribution()

public LayoutShiftAttribution()

Properties

CurrentRect

NOTE
Experimental
The currentRect read-only property of the LayoutShiftAttribution interface returns a DOMRectReadOnly object representing the position of the element after the shift.
[Value("currentRect")]
public DOMRectReadOnly CurrentRect { get; }

Property Value

DOMRectReadOnly

A DOMRectReadOnly object.

Remarks

Node

NOTE
Experimental
The node read-only property of the LayoutShiftAttribution interface returns a Node representing the object that has shifted.
[Value("node")]
public Node? Node { get; }

Property Value

Node

A Node.

Remarks

PreviousRect

NOTE
Experimental
The previousRect read-only property of the LayoutShiftAttribution interface returns a DOMRectReadOnly object representing the position of the element before the shift.
[Value("previousRect")]
public DOMRectReadOnly PreviousRect { get; }

Property Value

DOMRectReadOnly

A DOMRectReadOnly object.

Remarks