Improve normalization of CSS in tests

Now the normalization does not insert whitespace everywhere,
which should make tests more reliable and failure messages
easier to read.

Change-Id: Ic349e47dc4e86a42e9c932812726f450acbd83c4