Is there a way to prevent this fragment of focus outline from being left on the left column? Or is this a chrome bug?
Here is a link to my fiddle
let $li = $('li');
let liLength = $li.length;
let half = Math.floor(liLength / 2);
let $target = $li.eq(half);
$target.addClass('focus');
ul {
margin: 10px;
columns: 2;
}
li {
display: block;
padding: 10px;
margin-bottom: 20px;
}
li:focus,
li.focus {
outline: green auto 5px;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<ul>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
<li>Item</li>
</ul>