Table of Contents

Class GetMatchedStylesForNodeCommandResponse

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

Response for Returns requested styles for a DOM node identified by nodeId.

public sealed class GetMatchedStylesForNodeCommandResponse : ICommandResponse<GetMatchedStylesForNodeCommandSettings>, ICommandResponse
Inheritance
GetMatchedStylesForNodeCommandResponse
Implements
Inherited Members
Extension Methods

Properties

ActivePositionFallbackIndex

Index of the active fallback in the applied position-try-fallback property, will not be set if there is no active position-try fallback.

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

Property Value

long?

AttributesStyle

Attribute-defined element style (e.g. resulting from "width=20 height=100%").

[JsonPropertyName("attributesStyle")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSStyle? AttributesStyle { get; set; }

Property Value

CSSStyle

CssAtRules

A list of simple @rules matching this node or its pseudo-elements.

[JsonPropertyName("cssAtRules")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSAtRule[]? CssAtRules { get; set; }

Property Value

CSSAtRule[]

CssFunctionRules

A list of CSS at-function rules referenced by styles of this node.

[JsonPropertyName("cssFunctionRules")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSFunctionRule[]? CssFunctionRules { get; set; }

Property Value

CSSFunctionRule[]

CssKeyframesRules

A list of CSS keyframed animations matching this node.

[JsonPropertyName("cssKeyframesRules")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSKeyframesRule[]? CssKeyframesRules { get; set; }

Property Value

CSSKeyframesRule[]

CssPositionTryRules

A list of CSS @position-try rules matching this node, based on the position-try-fallbacks property.

[JsonPropertyName("cssPositionTryRules")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSPositionTryRule[]? CssPositionTryRules { get; set; }

Property Value

CSSPositionTryRule[]

CssPropertyRegistrations

A list of CSS property registrations matching this node.

[JsonPropertyName("cssPropertyRegistrations")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSPropertyRegistration[]? CssPropertyRegistrations { get; set; }

Property Value

CSSPropertyRegistration[]

CssPropertyRules

A list of CSS at-property rules matching this node.

[JsonPropertyName("cssPropertyRules")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSPropertyRule[]? CssPropertyRules { get; set; }

Property Value

CSSPropertyRule[]

Inherited

A chain of inherited styles (from the immediate node parent up to the DOM tree root).

[JsonPropertyName("inherited")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public InheritedStyleEntry[]? Inherited { get; set; }

Property Value

InheritedStyleEntry[]

InheritedPseudoElements

A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root).

[JsonPropertyName("inheritedPseudoElements")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public InheritedPseudoElementMatches[]? InheritedPseudoElements { get; set; }

Property Value

InheritedPseudoElementMatches[]

InlineStyle

Inline style for the specified DOM node.

[JsonPropertyName("inlineStyle")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CSSStyle? InlineStyle { get; set; }

Property Value

CSSStyle

MatchedCSSRules

CSS rules matching this node, from all applicable stylesheets.

[JsonPropertyName("matchedCSSRules")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public RuleMatch[]? MatchedCSSRules { get; set; }

Property Value

RuleMatch[]

ParentLayoutNodeId

Id of the first parent element that does not have display: contents.

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

Property Value

long?

PseudoElements

Pseudo style matches for this node.

[JsonPropertyName("pseudoElements")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public PseudoElementMatches[]? PseudoElements { get; set; }

Property Value

PseudoElementMatches[]