Here is a table style I have defined for selected elements:
tr[selected] {
background: #FFF;
border-color: #000000;
color: #000000;
}
To apply this style, I use JavaScript:
$this.unbind().change(function () {
element = $(this).parents('tr');
if ($(this).is(':selected')) element.attr('selected', '');
else element.removeAttr('selected')
});
$this.checkbox();
Although it works fine in most cases, I have noticed a strange glitch in Chrome where sometimes, after selecting and unselecting elements, part of the border-color property remains applied:
Expected Result:
https://i.sstatic.net/n9Mmj.png
Actual Result Sometimes:
https://i.sstatic.net/MiQYK.png
Is this issue known? And is there a workaround available?