Table of Contents

Class Layer

Namespace
OpenQA.Selenium.DevTools.V146.LayerTree
Assembly
Selenium.WebDriver.dll

Information about a compositing layer.

public sealed class Layer
Inheritance
Layer
Inherited Members

Properties

AnchorX

Transform anchor point X, absent if no transform specified

[JsonPropertyName("anchorX")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? AnchorX { get; set; }

Property Value

double?

AnchorY

Transform anchor point Y, absent if no transform specified

[JsonPropertyName("anchorY")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? AnchorY { get; set; }

Property Value

double?

AnchorZ

Transform anchor point Z, absent if no transform specified

[JsonPropertyName("anchorZ")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? AnchorZ { get; set; }

Property Value

double?

BackendNodeId

The backend id for the node associated with this layer.

[JsonPropertyName("backendNodeId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? BackendNodeId { get; set; }

Property Value

long?

DrawsContent

Indicates whether this layer hosts any content, rather than being used for transform/scrolling purposes only.

[JsonPropertyName("drawsContent")]
public bool DrawsContent { get; set; }

Property Value

bool

Height

Layer height.

[JsonPropertyName("height")]
public double Height { get; set; }

Property Value

double

Invisible

Set if layer is not visible.

[JsonPropertyName("invisible")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? Invisible { get; set; }

Property Value

bool?

LayerId

The unique id for this layer.

[JsonPropertyName("layerId")]
public string LayerId { get; set; }

Property Value

string

OffsetX

Offset from parent layer, X coordinate.

[JsonPropertyName("offsetX")]
public double OffsetX { get; set; }

Property Value

double

OffsetY

Offset from parent layer, Y coordinate.

[JsonPropertyName("offsetY")]
public double OffsetY { get; set; }

Property Value

double

PaintCount

Indicates how many time this layer has painted.

[JsonPropertyName("paintCount")]
public long PaintCount { get; set; }

Property Value

long

ParentLayerId

The id of parent (not present for root).

[JsonPropertyName("parentLayerId")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? ParentLayerId { get; set; }

Property Value

string

ScrollRects

Rectangles scrolling on main thread only.

[JsonPropertyName("scrollRects")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ScrollRect[]? ScrollRects { get; set; }

Property Value

ScrollRect[]

StickyPositionConstraint

Sticky position constraint information

[JsonPropertyName("stickyPositionConstraint")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public StickyPositionConstraint? StickyPositionConstraint { get; set; }

Property Value

StickyPositionConstraint

Transform

Transformation matrix for layer, default is identity matrix

[JsonPropertyName("transform")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double[]? Transform { get; set; }

Property Value

double[]

Width

Layer width.

[JsonPropertyName("width")]
public double Width { get; set; }

Property Value

double