Table of Contents

Class Specificity

Namespace
Selenium.WebDriver.BiDi.Cdp.CSS
Assembly
Selenium.WebDriver.BiDi.Cdp.dll
public sealed record Specificity : IEquatable<Specificity>
Inheritance
Specificity
Implements
Inherited Members

Constructors

Specificity(long, long, long)

public Specificity(long A, long B, long C)

Parameters

A long

The a component, which represents the number of ID selectors.

B long

The b component, which represents the number of class selectors, attributes selectors, and pseudo-classes.

C long

The c component, which represents the number of type selectors and pseudo-elements.

Properties

A

The a component, which represents the number of ID selectors.

public long A { get; init; }

Property Value

long

B

The b component, which represents the number of class selectors, attributes selectors, and pseudo-classes.

public long B { get; init; }

Property Value

long

C

The c component, which represents the number of type selectors and pseudo-elements.

public long C { get; init; }

Property Value

long

Components

Per-simple-selector contributions used to explain this specificity.

public ImmutableArray<SpecificityComponent>? Components { get; init; }

Property Value

ImmutableArray<SpecificityComponent>?