Clip text background and decoration properly. Closes #743.