<!DOCTYPE html>
<style>
.container {
  position: absolute;
  width: 100px;
}
.focus {
  outline: -webkit-focus-ring-color auto 5px;
}
.sub {
  margin-top: 50px;
  width: 100px;
  height: 100px;
  background-color: green;
}
</style>
<div class="container">
  <span class="focus">
    <div class="sub"></div>
  </span>
</div>
