Compressor was correct. Cleanup. Error in flattening engine.
Worked on improved flattening engine which correctly respects media queries. Updated combineSelector() to figure out the required set of media queries. Updated relevant users of this API. Improved ordering logic for flattening engine.