Table of Contents

Class ResolveValuesCommandSettings

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

Resolve the specified values in the context of the provided element. For example, a value of '1em' is evaluated according to the computed 'font-size' of the element and a value 'calc(1px + 2px)' will be resolved to '3px'. If the propertyName was specified the values are resolved as if they were property's declaration. If a value cannot be parsed according to the provided property syntax, the value is parsed using combined syntax as if null propertyName was provided. If the value cannot be resolved even then, return the provided value without any changes. Note: this function currently does not resolve CSS random() function, it returns unmodified random() function parts.`

public sealed class ResolveValuesCommandSettings : ICommand
Inheritance
ResolveValuesCommandSettings
Implements
Inherited Members

Properties

CommandName

Gets the name of the command.

[JsonIgnore]
public string CommandName { get; }

Property Value

string

NodeId

Id of the node in whose context the expression is evaluated

[JsonPropertyName("nodeId")]
public long NodeId { get; set; }

Property Value

long

PropertyName

Only longhands and custom property names are accepted.

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

Property Value

string

PseudoIdentifier

Pseudo element custom ident.

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

Property Value

string

PseudoType

Pseudo element type, only works for pseudo elements that generate elements in the tree, such as ::before and ::after.

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

Property Value

PseudoType?

Values

Cascade-dependent keywords (revert/revert-layer) do not work.

[JsonPropertyName("values")]
public string[] Values { get; set; }

Property Value

string[]