The idea is to fake the CSS clip property using four <div> elements masking parts of the underlying image: top, left, right, and bottom. In the middle is a hole.
clip
<div>
Files: index.html, mask.css, mask.js