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
- fix(css): var() fallback parsing by @bennypowers in #60
Full Changelog: v0.1.16...v0.1.17