change background ellipsis span by context