What’s New

csstree v3.0.1

v3.0.1

3.0.1

Added
  • Added errors array to the Lexer#validate() method result, providing details on problematic syntax
  • Added Lexer#cssWideKeywords dictionary to list CSS-wide keywords
Changed
  • Bumped mdn/data to 2.12.1
  • Updated the Lexer's constructor to consider config.cssWideKeywords for overriding the default list
  • Expanded the lexer's dump output to include the cssWideKeywords dictionary
  • Modified the fork() method to accept a cssWideKeywords option, allowing the addition of new keywords to the existing list
Fixed
  • Reverted changes to Block to include { and }, and Atrule and Rule to exclude { and } for a block
  • Fixed syntaxes for <basic-shapes>, <absolute-color-function> and <'stroke-opacity'>
Removed
  • Removed second parameter (assign) for the callback in the fork() method
  • Bumped mdn/data to 2.12.1
  • Added errors array to the Lexer#validate() method result, providing details on problematic syntax.
  • Added CSS wide keyword customization and introspection:
    • Added a Lexer#cssWideKeywords dictionary to list CSS-wide keywords
    • Updated the Lexer's constructor to consider config.cssWideKeywords for overriding the default list
    • Expanded the lexer's dump output to include the cssWideKeywords dictionary
    • Modified the fork() method to accept a cssWideKeywords option, allowing the addition of new keywords to the existing list
  • Reverted changes to Block to include { and }, and Atrule and Rule to exclude { and } for a block (#296)
  • Removed second parameter (assign) for the callback in the fork() method (e.g., syntax.fork((config, assign) => { ... })), as it simply refers to Object.assign()
  • Fixes in syntaxes: <basic-shapes>, <absolute-color-function> and <'stroke-opacity'>
View original