Skip to content

fix(issue#4354): unknown at-rule expression commas#4389

Merged
matthew-dean merged 1 commit intoless:masterfrom
puckowski:master_refix_issue4354
Mar 9, 2026
Merged

fix(issue#4354): unknown at-rule expression commas#4389
matthew-dean merged 1 commit intoless:masterfrom
puckowski:master_refix_issue4354

Conversation

@puckowski
Copy link
Copy Markdown
Contributor

What:

Fix issue #4354 unknown at-rule expressions should not have commas in keyword list.

This is a fresh PR after the mega test refactor (#4378) and closes #4387

Why:

Current behavior (4.4.0+):

.box {
  @apply h-64, w-64;
}

Expected behavior:

.box {
  @apply h-64 w-64;
}

There have been downstream issues, see: web-infra-dev/rsbuild#5688

Checklist:

  • Documentation
  • Added/updated unit tests
  • Code complete

Should be a less hacky solution than #4366
Seems some logic was not needed as tests passed without some problematic code.
I added some additional layer at-rule tests since the regression was caused by code introduced to support layer at-rules.

@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Dec 13, 2025
@puckowski
Copy link
Copy Markdown
Contributor Author

@matthew-dean @iChenLei Would either of you be able to peer review this PR?

* Fix issue less#4354 unknown at-rule expressions should not have commas in
  a keyword list.
* Add some additional layer at-rule tests.
@puckowski puckowski force-pushed the master_refix_issue4354 branch from 3b8a819 to 2375ef5 Compare December 15, 2025 21:52
@puckowski
Copy link
Copy Markdown
Contributor Author

@matthew-dean Would you be able to peer review this PR?

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Mar 8, 2026
@matthew-dean matthew-dean merged commit f5b7ad8 into less:master Mar 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants