Fix for #390, nested @media (with a test case)