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

Space before : are removed inside media query #334

Open
rczobor opened this issue Feb 25, 2020 · 2 comments
Open

Space before : are removed inside media query #334

rczobor opened this issue Feb 25, 2020 · 2 comments

Comments

@rczobor
Copy link

rczobor commented Feb 25, 2020

Version 2.4.8 removes spaces in css selector when inside a media (or @supports) query:

@media screen and (-ms-high-contrast: none) {
    body :focus {
      outline: 2px solid #5e9ed6;
    }
}

The space before : is removed and changing the selector.

@media screen and (-ms-high-contrast: none) {
    body:focus {
      outline: 2px solid #5e9ed6;
    }
}

The space before : should not be removed.

@suminas85
Copy link

suminas85 commented Jun 23, 2022

Hi @nethzyr
The same for me even with asterisk.

@media ... { .content :not(...) { ... } }
or
@media ... { .content *:not(...) { ... } }

After compressing:
@media ...{ .content:not() { ... } }

UPD: temporary solution is to use "* *"
@media ... { .content * *:not(...) { ... } }

After compressing:
@media ... { .content * :not(...) { ... } }

@melloware
Copy link

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

No branches or pull requests

3 participants