handle (and test) more URL rewriting scenarios in CSS - fixes #2