Table of Contents

Class RuleUsage

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

CSS coverage information.

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

Constructors

RuleUsage(StyleSheetId, double, double, bool)

CSS coverage information.

public RuleUsage(StyleSheetId StyleSheetId, double StartOffset, double EndOffset, bool Used)

Parameters

StyleSheetId StyleSheetId

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

StartOffset double

Offset of the start of the rule (including selector) from the beginning of the stylesheet.

EndOffset double

Offset of the end of the rule body from the beginning of the stylesheet.

Used bool

Indicates whether the rule was actually used by some element in the page.

Properties

EndOffset

Offset of the end of the rule body from the beginning of the stylesheet.

public double EndOffset { get; init; }

Property Value

double

StartOffset

Offset of the start of the rule (including selector) from the beginning of the stylesheet.

public double StartOffset { get; init; }

Property Value

double

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

Used

Indicates whether the rule was actually used by some element in the page.

public bool Used { get; init; }

Property Value

bool