Applying object style onto reference element before checking