Log in Sign up

CSS Source order changed by compression?

I wrote a couple styles inside a prefers-color-scheme: dark media query. My selectors have the same specificity, but are placed below the styles for the regular light mode.

Somehow this ends up in a different source order on the web, making my intended dark mode styles not taking precedence. Is it possible that some server-side minification mixes up the source order of my selectors?


5 months ago, 0 replies   Edit question

No replies yet