• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

eslint / csstree / 19584188005

21 Nov 2025 09:36PM UTC coverage: 98.551% (-0.06%) from 98.609%
19584188005

push

github

web-flow
fix: comma-separated declaration values parsed as Raw nodes (#101)

* Initial plan

* Fix comma-separated declaration values parsed as Raw nodes

- Import Comma and LeftCurlyBracket tokens in DeclarationList.js
- Fix isElementSelectorStart() to properly handle comma-separated values
- Use positive check for LeftCurlyBracket instead of negative exclusion
- Ensure pseudo-class detection only returns true when followed by {
- Add test cases for comma-separated declaration values

Fixes regression introduced in v3.6.7 where properties like background-attachment,
font-family, and transition with comma-separated values were incorrectly parsed
as Raw nodes instead of Declaration nodes.

Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>

* Improve code clarity in isElementSelectorStart function

- Restructure control flow for better readability
- Handle colon case explicitly with clearer logic
- Add more descriptive comments
- Separate declaration and selector detection paths

Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>

2971 of 3049 branches covered (97.44%)

Branch coverage included in aggregate %.

17 of 21 new or added lines in 1 file covered. (80.95%)

3 existing lines in 1 file now uncovered.

11927 of 12068 relevant lines covered (98.83%)

4082.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.64
/lib/syntax/node/DeclarationList.js


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc