An MSDN post from 2007 describes how to format a single file to be valid CSS and JavaScript at the same time.

Probably not something I’d use on a regular site, still a clever hack though.