Specificity

@Serializable
data class Specificity(val a: Int, val b: Int, val c: Int)

Specificity: https://drafts.csswg.org/selectors/#specificity-rules

Constructors

Link copied to clipboard
constructor(a: Int, b: Int, c: Int)

Properties

Link copied to clipboard
val a: Int

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

Link copied to clipboard
val b: Int

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

Link copied to clipboard
val c: Int

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