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

Extra space in pseudo-elements and pseudo-classes selectors #1233

Closed
foulmetal opened this issue Aug 18, 2017 · 1 comment
Closed

Extra space in pseudo-elements and pseudo-classes selectors #1233

foulmetal opened this issue Aug 18, 2017 · 1 comment

Comments

@foulmetal
Copy link

Description

When using rule with a pseudo-elements or pseudo-classes selectors inside a :not() selector and this rule is nested in another rule, less beautify add extra space after the first colon

Input

.one {
    color: #FFF;
    span:not(*::selection) { // pseudo-element
        margin-top: 0;
    }
}

.two {
    color: #000;
    span:not(*:active) { // pseudo-class
        margin-top: 0;
    }
}

Expected Output

The code should have looked like this after beautification:

.one {
    color: #FFF;
    span:not(*::selection) {
        // pseudo-element
        margin-top: 0;
    }
}

.two {
    color: #000;
    span:not(*:active) {
        // pseudo-class
        margin-top: 0;
    }
}

Actual Output

The code actually looked like this after beautification:

.one {
    color: #FFF;
    span:not(*: :selection) {
        // pseudo-element
        margin-top: 0;
    }
}

.two {
    color: #000;
    span:not(*: active) {
        // pseudo-class
        margin-top: 0;
    }
}

Steps to Reproduce

Environment

OS:
Ubuntu, MacOSX

Settings

default one

@shinrabansyou
Copy link

I have the same problem

@bitwiseman bitwiseman added this to the v1.8.x milestone Oct 23, 2018
@bitwiseman bitwiseman modified the milestones: v1.9.x, v1.10.x Apr 29, 2019
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