You may use negative superthick semi-transparent border...
.red {_x000D_
outline: 100px solid rgba(255, 0, 0, 0.5) !important;_x000D_
outline-offset: -100px;_x000D_
overflow: hidden;_x000D_
position: relative;_x000D_
height: 200px;_x000D_
width: 200px;_x000D_
}
_x000D_
<div class="red">Anything can be red.</div>_x000D_
<h1>Or even image...</h1>_x000D_
<img src="https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-logo.png?v=9c558ec15d8a" class="red"/>
_x000D_
This solution requires you to know exact sizes of covered object.