box-shadow inset + border radius bug

HTML

<div class="parent">
    <div class="child buggy">
      <span>with border-radius - visible edge</span>
    </div>
</div>

CSS

.parent {
  display:flex;
  background-color: white;
  padding-top: 20px;
}

.child {
  background: wheat;
  color: white;
  display: inline-block;
  padding: 15px 15px 15px 0;
  border-radius: 10px;
}

span {background-color: blue;display: block; width:150px;height: 150px;}