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

unqualified psuedo-classes are combined with previous seletor #10

Open
AaronAsAChimp opened this issue Jun 28, 2012 · 4 comments
Open

Comments

@AaronAsAChimp
Copy link

sqwish incorrectly combines pseudo-classes with the previous selector when it is unqualified.

styles.css

.class :first-child {
    color: red;
}

styles.min.css

.class:first-child{color:red}

Qualifying it with an asterisk seems to be an effective workaround. On a related thought, but not necessarily related to this bug, it could probably be removed when minifying to save a byte.

@ded
Copy link
Owner

ded commented Jun 28, 2012

interesting. i'll have a look

@rstacruz
Copy link
Contributor

I think this is because of the wrong assumption of the : character to only be used for properties (eg: sqwishing font-family : serif to font-family:serif. I suppose there needs to be a refactor to treat declarations and selectors differently.

@timaschew
Copy link

is this issue solved now?

@CharlesWall
Copy link

@timaschew I am still seeing this issue.

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

5 participants