Style assertion fix for properties dependent on other properties

The computed value of certain CSS properties can be affected by others.
This patch copies the style properties from the test element onto the reference element before individual properties are compared.