pub type Specificity = (usize, usize, usize);Expand description
How CSS ranks one selector: ids, then classes, then elements.
Ordered the way the cascade orders it, so the tuple comparison is the cascade’s comparison. It settles a contest between two rules in the same layer, which is the only contest it is used for here: a layer beats specificity outright, so nothing in the app’s sheet has to be compared against the generated one this way.