Tests layout and painting of table cell after baseline and border changes.