What’s New

csstree v2.3.0

v2.3.0

2.3.0 CSS Nesting, units introspection & customisation

Added
  • CSS Nesting support with NestingSelector node type for & (nesting selector) in selectors
  • Add @nest at-rule
  • Add Lexer#units dictionary to provide unit groups (length, angle, etc.) used for matching
Changed
  • Parse @media inside a Rule to handle block content as Declaration first
  • Update DeclarationList behaviour to follow the rules for Rule's block
  • Lexer constructor now considers config.units to override default units
  • Extended lexer's dump to contain a units dictionary
  • Bumped mdn-data to 2.0.30
  • Added CSS Nesting support:
    • Added NestingSelector node type for & (a nesting selector) in selectors
    • Added @nest at-rule
    • Changed behaviour for @media inside a Rule to parse its block content as a Declaration first
    • Changed DeclarationList behaviour to follow the rules for Rule's block
  • Added the dimension units introspection & customisation:
    • Added Lexer#units dictionary to provide unit groups (length, angle, etc.) used for matching
    • Changed Lexer's constructor to take into consideration config.units to override default units
    • Extended lexer's dump to contain a units dictionary
  • Bumped mdn-data to 2.0.30
View original