> When a style rule contains both declarations and nested style rules or nested conditional group rules, the declarations must come first, followed by the nested rules. Declarations occuring[sic] after a nested rule are invalid and ignored.
[1] https://www.w3.org/TR/2021/WD-css-nesting-1-20210831/#mixing
Fortunately, this has been changed in the most recent proposal[2]:
> When a style rule contains both declarations and nested style rules or nested conditional group rules, all three can be arbitrarily mixed. However, the relative order of declarations vs other rules is not preserved in any way.
Really curious about the reasoning behind that initial quirk
We removed the restriction, but still warn against it due to readability issues.