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
NestingSelectornode type for&(a nesting selector) in selectors - Added
@nestat-rule - Changed behaviour for
@mediainside aRuleto parse its block content as aDeclarationfirst - Changed
DeclarationListbehaviour to follow the rules forRule's block
- Added
- Added the dimension units introspection & customisation:
- Added
Lexer#unitsdictionary to provide unit groups (length,angle, etc.) used for matching - Changed Lexer's constructor to take into consideration
config.unitsto override default units - Extended lexer's dump to contain a units dictionary
- Added
- Bumped
mdn-datato2.0.30