Revert "simplify tip.attr and tip.style"

This reverts commit 24754f41093d70de64f8814fc618880441f369e4.