change when style attribute is removed