Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 30
Update specificity to support pseudo-classes #67
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Metadata
Metadata
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
According to https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Cascade/Specificity#selector_weight_categories pseudo-classes (and other things) are counted for the class column, i.e. the CSS selector:
has specificity (0, 3, 1) (the class column is 3 because of the
.tableclass and the two:last-childpseudo classes). Howevercssutils2.11.1 reports the specificity for this selector as (0, 1, 1) (because only thetris counted).Are there any plans to update
cssutilsto calculate the specificity based on the current standard?