sqwish icon indicating copy to clipboard operation
sqwish copied to clipboard

unqualified psuedo-classes are combined with previous seletor

Open AaronAsAChimp opened this issue 13 years ago • 4 comments

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.

AaronAsAChimp avatar Jun 28 '12 18:06 AaronAsAChimp

interesting. i'll have a look

ded avatar Jun 28 '12 20:06 ded

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.

rstacruz avatar Jul 18 '12 23:07 rstacruz

is this issue solved now?

timaschew avatar Dec 12 '14 08:12 timaschew

@timaschew I am still seeing this issue.

CharlesWall avatar Aug 24 '17 20:08 CharlesWall