Only update styles on elements that change