Table of Contents

Class CSSProperty

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

CSS property declaration data.

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

Constructors

CSSProperty(string, string)

CSS property declaration data.

public CSSProperty(string Name, string Value)

Parameters

Name string

The property name.

Value string

The property value.

Properties

Disabled

Whether the property is disabled by the user (present for source-based properties only).

public bool? Disabled { get; init; }

Property Value

bool?

Implicit

Whether the property is implicit (implies false if absent).

public bool? Implicit { get; init; }

Property Value

bool?

Important

Whether the property has "!important" annotation (implies false if absent).

public bool? Important { get; init; }

Property Value

bool?

LonghandProperties

Parsed longhand components of this property if it is a shorthand. This field will be empty if the given property is not a shorthand.

public ImmutableArray<CSSProperty>? LonghandProperties { get; init; }

Property Value

ImmutableArray<CSSProperty>?

Name

The property name.

public string Name { get; init; }

Property Value

string

ParsedOk

Whether the property is understood by the browser (implies true if absent).

public bool? ParsedOk { get; init; }

Property Value

bool?

Range

The entire property range in the enclosing style declaration (if available).

public SourceRange? Range { get; init; }

Property Value

SourceRange

Text

The full property text as specified in the style.

public string? Text { get; init; }

Property Value

string

Value

The property value.

public string Value { get; init; }

Property Value

string