oklai / koala

Koala is a GUI application for less, sass and coffeescript compilation, to help web developers to the development more efficient.
http://koala-app.com
Other
3.99k stars 522 forks source link

BUG: Koala replaces/changes a css statement after compile #710

Closed EmmanuelGa closed 6 years ago

EmmanuelGa commented 6 years ago

v2.3.0

Bug report

Hi, in our css files we use a css statement with the following selector:

select:not(*:root) {
    /* some code */
}

After compileing the code Koala replaces/changes the selector to

select:not(:root) {
    /* some code */
}

so we have to add the * manually. Is there any way to fix that?

best regards Emmanuel

zaygraveyard commented 6 years ago

*:root and :root are equivalent so you actually need to add the * And BTW it's not Koala that's making this change but the compiler LESS, SASS or clean-css (whichever you are using).