CssSpecificity
data class CssSpecificity(val a: Int = 0, val b: Int = 0, val c: Int = 0) : Comparable<CssSpecificity> (source)
Represents CSS specificity as defined in the CSS specification.
Specificity is a weight that is applied to CSS rules to determine which rule is applied when multiple rules target the same element.
It is comprised of three components:
a: Represents the number of ID selectors in the rule.
b: Represents the number of class selectors, attribute selectors, and pseudo-classes in the rule.
c: Represents the number of type selectors and pseudo-elements in the rule.
This class provides methods for comparing and adding specificities.