Table of Contents

Class CSSStyle

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

CSS style representation.

public sealed class CSSStyle
Inheritance
CSSStyle
Inherited Members

Properties

CssProperties

CSS properties in the style.

[JsonPropertyName("cssProperties")]
public CSSProperty[] CssProperties { get; set; }

Property Value

CSSProperty[]

CssText

Style declaration text (if available).

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

Property Value

string

Range

Style declaration range in the enclosing stylesheet (if available).

[JsonPropertyName("range")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public SourceRange? Range { get; set; }

Property Value

SourceRange

ShorthandEntries

Computed values for all shorthands found in the style.

[JsonPropertyName("shorthandEntries")]
public ShorthandEntry[] ShorthandEntries { get; set; }

Property Value

ShorthandEntry[]

StyleSheetId

The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.

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

Property Value

string