Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Master container style fix for 4235 #4237

Merged
merged 3 commits into from Jan 18, 2024

Conversation

puckowski
Copy link
Contributor

What:

Fixes issue #4235

style keyword would have invalid space after keyword in container queries.

Why:

With the invalid space, the CSS is not parsed correctly by browsers.

Checklist:

  • Documentation
  • Added/updated unit tests
  • Code complete

Tests passing locally. Updated one test case for container queries.

parse the correct entities for a comma separated list so that all URLs are
rewritten correctly.
Copy link
Member

@matthew-dean matthew-dean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style is much too specific. More function-like constructs are being added and more may follow. Please make parsing more generic and look at function parsing to correctly capture parsing here.

fixes issue less#4235 where container query style would have invalid space
after keyword
@puckowski
Copy link
Contributor Author

Rewrote solution to use function parsing to be more flexible for future functions in declarations of at-rules. Updated container at-rule tests. Tests pass locally. @matthew-dean

@matthew-dean
Copy link
Member

@puckowski Thanks!

@puckowski
Copy link
Contributor Author

@iChenLei Do you believe we can merge this pull request?

@iChenLei
Copy link
Member

cc @matthew-dean

@puckowski
Copy link
Contributor Author

@matthew-dean Do you believe we can merge this pull request?

I'd like to update some dependent projects to add support for --style.

@matthew-dean
Copy link
Member

@puckowski Oh yup, let's do it. Holidays + covid made me miss this.

@matthew-dean matthew-dean merged commit 53f84f0 into less:master Jan 18, 2024
8 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.

None yet

3 participants