Rule classification with negative media queries