fixes #9538: prevent Firefox rendering bug via some border-fu