title: Overflow hidden with border-radius still shows small border
body: <p>I was trying to create a text overlay on top of an image, and I wanted to add a slight border-radius to it all. But I noticed that when adding <code>border-radius: 5px</code> and <code>overflow: hidden</code> to the parent, the image behind the overlay is still showing a small part of its border on the bottom corners, as if it forgot to hide a pixelated line there.</p>
  <p><a href="https://i.stack.imgur.com/DZkVU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DZkVU.jpg" alt="overflow" /></a> (small grey line in bottom right corner from image still visible)</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.main-info {
    box-shadow: 0px 0px 3px 2px #221b25c7;
    border-radius: 5px;
    font-size: 0.75rem;
    overflow: hidden;
  }
  
  .main-info &gt; .img {
    position: relative;
  }
  
  .text {
    position: absolute;
    display: flex;
    width: 100%;
    bottom: 0;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-transition: opacity 0.2s ease-out;
    transition: opacity 0.2s ease-out;
    opacity: 1;
    color: white;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    z-index: 5;
    line-height: 25px;
  }
  
  .text &gt; .limit {
    color: white;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: relative;
    max-width: 100%;
    width: 0;
    padding: 0 0.5rem;
  }
  
  .text &gt; .limit {
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;div class="row m-5"&gt;
    &lt;div class="col-8"&gt;
      &lt;div class="main-info"&gt;
        &lt;div class="img"&gt;
          &lt;a href="#"&gt;
            &lt;div class="text"&gt;
              &lt;div class="limit"&gt;Hello World&lt;/div&gt;
            &lt;/div&gt;
            &lt;img src="https://placehold.it/272x154" style="width: 100%"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I've thought of just adding the border-radius to the children, but that gave the same result.</p>