Skip to content

@media rules containing whitespace not compiling #421

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

Closed
knupska opened this issue Jul 19, 2021 · 2 comments
Closed

@media rules containing whitespace not compiling #421

knupska opened this issue Jul 19, 2021 · 2 comments

Comments

@knupska
Copy link

knupska commented Jul 19, 2021

If the @media rule has any whitespace before or after the variable it will not compile, which is a regression of issue csstools/postcss-custom-media#2.

Media rules with whitespace last compiled correctly in version 6.0.0, with all versions since then (including the current 8.0.0) outputting:

@media( --lap-down) {
  /* Whitespace before - Doesn't compile */
}
@media(--lap-down ) {
  /* Whitespace after - Doesn't compile */
}
@media( --lap-down ) {
  /* Whitespace before and after - Doesn't compile */
}
@media(--lap-down) {
  /* No whitespace - Compiles correctly */
}
@kaishiro
Copy link

This bug has bit me several times - would love to see this PR rolled into the main trunk.

@romainmenke romainmenke transferred this issue from csstools/postcss-custom-media Jun 3, 2022
@romainmenke
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants