<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@csstools/selector-specificity](./selector-specificity.md)

## selector-specificity package

## Functions

<table><thead><tr><th>

Function


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[compare(s1, s2)](./selector-specificity.compare.md)


</td><td>

Compare two specificities


</td></tr>
<tr><td>

[selectorSpecificity(node, options)](./selector-specificity.selectorspecificity.md)


</td><td>

Calculate the specificity for a selector


</td></tr>
<tr><td>

[specificityOfMostSpecificListItem(nodes, options)](./selector-specificity.specificityofmostspecificlistitem.md)


</td><td>

Calculate the most specific selector in a list


</td></tr>
</tbody></table>

## Type Aliases

<table><thead><tr><th>

Type Alias


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

[CalculationOptions](./selector-specificity.calculationoptions.md)


</td><td>

Options for the calculation of the specificity of a selector


</td></tr>
<tr><td>

[CustomSpecificityCallback](./selector-specificity.customspecificitycallback.md)


</td><td>

Calculate a custom specificity for a node


</td></tr>
<tr><td>

[Specificity](./selector-specificity.specificity.md)


</td><td>

The specificity of a selector


</td></tr>
</tbody></table>

