Skip to content

Fix single-arg values inside nested at-rules - #180

Merged
ai merged 1 commit into
postcss:mainfrom
feritcemkahraman:fix-single-arg-nested-at-rules
Oct 10, 2026
Merged

ai merged 1 commit into
postcss:mainfrom
feritcemkahraman:fix-single-arg-nested-at-rules

Conversation

@feritcemkahraman

Copy link
Copy Markdown
Contributor

single-arg(Arial, sans-serif) remains in generated CSS when a mixin places its declarations inside an @media or @supports block. The argument walker descends into style rules but skips at-rule containers.

Descend into nodes with children so both CSS-defined and object/function mixins unwrap single arguments throughout nested blocks. Leaf at-rules stay untouched.

Validation:

  • Both new regressions fail against the original source (45 passed, 2 failed).
  • All 47 tests pass after the change.
  • c8: 100% statements, functions and lines; 97.84% branches overall.
  • Full ESLint and git diff --check pass.

No dependencies or public API were changed.

@ai
ai merged commit 4e6b5a3 into postcss:main Oct 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants