Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(issue:4301) at-rule declarations missing #4302

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

puckowski
Copy link
Contributor

What:

Why:

User raised an issue in #4267 (comment) where they noted @media and @container are not properly nesting in some cases.

Shared at-rule function was incorrectly assuming all nodes in list were of same type, but as of Less.js 4.2.0 that is no longer true as @container query support was firmed up in that release and can be mixed with @media.

Checklist:

  • Documentation
  • Added/updated unit tests
  • Code complete

* Fixes issue less#4301. At-rule declarations may go missing or are
  incorrectly merged under certain nesting conditions.
* Added more ```@container``` tests.
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Dec 19, 2024
@puckowski
Copy link
Contributor Author

CI seems flaky.

@puckowski
Copy link
Contributor Author

Would either of you mind reviewing this PR? @matthew-dean @iChenLei

This PR should also pre-emptively resolve issues that would arise from #4289

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 2, 2025
@matthew-dean matthew-dean merged commit 9d92b0c into less:master Jan 2, 2025
7 of 8 checks passed
# for free to join this conversation on GitHub. Already have an account? # 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