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

CSS Compressor: Invalid whitespace removal / @supports () "or" () #76

Closed
melloware opened this issue Jun 25, 2022 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@melloware
Copy link
Member

original Issue: yui/yuicompressor#340

Raw:

.foo {
    @supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
        background: rgba(69, 69, 69, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
      }
}

Incorrectly compressed to:

.foo {
    @supports (backdrop-filter: blur(10px)) or(-webkit-backdrop-filter: blur(10px)) {
        background: rgba(69, 69, 69, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
      }
}

No space after the or causes issues in Chrome

@melloware melloware changed the title CSS Compressor: CSS Compressor: Invalid whitespace removal / @supports () "or" () Jun 25, 2022
@melloware melloware self-assigned this Jun 25, 2022
@melloware melloware added the bug label Jun 25, 2022
@melloware melloware added this to the 2.5.0 milestone Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant