Tests that style modification generates attribute updated event only when attribute is actually changed.