<div class="container">

  <img src="http://tympanus.net/codrops-playground/assets/images/cssref/properties/mask-border-width/sleepy-owl.jpg" alt="">

  <p><strong>You should read more about how the different border image properties work together in the <a href="http://tympanus.net/codrops/css_reference/mask-border"><code>mask-border</code></a> shorthand property entry</strong>.</p>
</div>
body {
  background-color: #F5F5F5;
  color: #555;
  font-size: 1.1em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.container {
  margin: 40px auto;
  max-width: 700px;
}

img {
  -webkit-mask-border-source: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/mask-border-width/mask-border-image.png);
  mask-border-source: url(http://tympanus.net/codrops-playground/assets/images/cssref/properties/mask-border-width/mask-border-image.png);
  -webkit-mask-border-repeat: round;
  mask-border-repeat: round;
  -webkit-mask-border-width: 27px;
  mask-border-width: 27px;
  -webkit-mask-border-slice: 27;
  mask-border-slice: 27;
}