simplify tip.attr and tip.style