better warning messages for deprecated .style() method