Skip to content

v0.1.17

Latest

Choose a tag to compare

@bennypowers bennypowers released this 01 Nov 21:50
· 3 commits to main since this release

CSS var() Fallback Parsing

Fixed parsing of CSS custom property var() functions with complex fallback values
containing commas. The parser now correctly handles:

  • Font-family lists: Comma-separated font names including quoted fonts with spaces
    font-family: var(--font-family, FooFont, 'Bar Font', sans-serif);
  • Nested function calls: Functions like rgba() that contain commas as part of the
    fallback value
    box-shadow: var(--shadow, 1px 2px rgba(0, 0, 0, 0.5));
  • Mixed value types: Any combination of unquoted identifiers, quoted strings, and nested
    functions

What's Changed

Full Changelog: v0.1.16...v0.1.17