Table of Contents

Class CSSStyle

Namespace
Selenium.WebDriver.BiDi.Cdp.CSS
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

CSS style representation.

public sealed record CSSStyle : IEquatable<CSSStyle>
Inheritance
CSSStyle
Implements
Inherited Members

Constructors

CSSStyle(ImmutableArray<CSSProperty>, ImmutableArray<ShorthandEntry>)

CSS style representation.

public CSSStyle(ImmutableArray<CSSProperty> CssProperties, ImmutableArray<ShorthandEntry> ShorthandEntries)

Parameters

CssProperties ImmutableArray<CSSProperty>

CSS properties in the style.

ShorthandEntries ImmutableArray<ShorthandEntry>

Computed values for all shorthands found in the style.

Properties

CssProperties

CSS properties in the style.

public ImmutableArray<CSSProperty> CssProperties { get; init; }

Property Value

ImmutableArray<CSSProperty>

CssText

Style declaration text (if available).

public string? CssText { get; init; }

Property Value

string

Range

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

public SourceRange? Range { get; init; }

Property Value

SourceRange

ShorthandEntries

Computed values for all shorthands found in the style.

public ImmutableArray<ShorthandEntry> ShorthandEntries { get; init; }

Property Value

ImmutableArray<ShorthandEntry>

StyleSheetId

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

public StyleSheetId? StyleSheetId { get; init; }

Property Value

StyleSheetId