August 3, 2024
- Updated: Support for Node v18+ (major).
May 13, 2024
- Prevent mutation of selectors with An+B microsyntax (e.g.
:nth-child(2n+1 of .foo)
) during specificity calculation
May 11, 2024
- Add an option to
selectorSpecificity
andspecificityOfMostSpecificListItem
to customize the calculation - Add
specificityOfMostSpecificListItem
as an exported function
March 31, 2024
- Add support for:
:active-view-transition
:active-view-transition-type(foo)
February 19, 2024
- Fixed specificity calculation for
:any()
and:-webkit-any()
pseudo class functions. by @carlosjeurissen
December 15, 2023
- Add support for:
:active-view-transition(*)
:active-view-transition(name)
July 3, 2023
- Change license to
MIT-0
(read more about this change in the blog post)
March 21, 2023
- Improve case insensitive string matching.
- Add support for:
::view-transition
::view-transition-group(*)
and::view-transition-group(name)
::view-transition-image-par(*)
and::view-transition-image-par(name)
::view-transition-old(*)
and::view-transition-old(name)
::view-transition-new(*)
and::view-transition-new(name)
January 28, 2023
- Improve
types
declaration inpackage.json
January 19, 2023
- Add support for
::slotted
- Add support for
:host
- Add support for
:host-context
July 8, 2022
- Fix case insensitive matching.
June 10, 2022
- Fixed: Exception on
:nth-child
without arguments. #439
June 4, 2022
- Breaking: use only named exports instead of
default
- Added:
compare(a, b)
function to compare selectors by specificity
- `import selectorSpecificity from '@csstools/selector-specificity';`
+ `import { selectorSpecificity } from '@csstools/selector-specificity';`
April 26, 2022
- Initial version