Applying object style onto reference element before checking
Merge pull request #350 from alancutter/alterStyleAssertionChecking

Style assertion fix for properties dependent on other properties