Class Specificity
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
AlongThe a component, which represents the number of ID selectors.
BlongThe b component, which represents the number of class selectors, attributes selectors, and pseudo-classes.
ClongThe 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
B
The b component, which represents the number of class selectors, attributes selectors, and pseudo-classes.
public long B { get; init; }
Property Value
C
The c component, which represents the number of type selectors and pseudo-elements.
public long C { get; init; }
Property Value
Components
Per-simple-selector contributions used to explain this specificity.
public ImmutableArray<SpecificityComponent>? Components { get; init; }