title: Give SVG and DIV the same background color with css
body: <p>I really did not understand much about masking/clipping. I´m trying something new with svg as a arrow for a chat bubble. Here is my pen:
  <a href="http://codepen.io/muuvmuuv/pen/pjRaVW" rel="nofollow">codepen</a>
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>*, *::after, *::before {
   box-sizing: border-box;
  }
  html, body, div, b {
   margin: 0;
   padding: 0;
   border: 0;
   font-size: 100%;
   font: inherit;
   vertical-align: baseline;
  }
  
  html {
   font-size: 62.5%;
  }
  
  body {
   font: {
    size: 1.6rem;
    family: 'Lato', sans-serif;
   }
   background-color: #132333;
   overflow: hidden;
  }
  
  .chat-container {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 60px 40px;
  }
  
  .msg {
    position: relative;
    z-index: 100;
    display: inline-block;
    width: 100%;
  
    &amp;:not(:first-child) {
      margin-top: 40px;
    }
  
    .box {
      position: relative;
      max-width: 900px;
      width: 70%;
      padding-bottom: 20px;
      display: inline-block;
  
      .user {
        position: relative;
        display: block;
        float: inherit;
        vertical-align: top;
  
        img {
          border-radius: 50%;
          width: 50px;
          height: 50px;
        }
      }
  
      .bubble {
        position: relative;
        display: block;
     float: inherit;
        max-width: 600px;
        min-height: 100%;
        padding: 5px 25px;
        margin: 0 auto;
        border-radius: 40px;
        
        p {
      text-align: left;
      font-size: 16px;
      line-height: 24px;
      word-wrap: break-word;
      direction: ltr;
        }
  
        &amp;::before {
          content: '';
          position: absolute;
          display: block;
          float: inherit;
          top: 18px;
          width: 20px;
          height: 25px;
          -webkit-clip-path: url(http://imgh.us/bubble.svg);
          -webkit-mask: url(http://imgh.us/bubble.svg);
          clip-path: url(http://imgh.us/bubble.svg#svgClip);
          z-index: 0;
        }
      }
  
      .info {
     position: absolute;
     bottom: 0;
     font-size: 12px;
     color: rgba(255, 255, 255, 0.3);
      }
  
      &amp;.left {
        float:left;
  
        .user img {
          margin-right: 18px;
        }
        .bubble {
          background: linear-gradient(to right, #4589D0 0%, #1B6FAB 100%);
  
          p { color: rgba(245, 245, 245, 0.9); }
          &amp;::before {
            left: -12px;
            background: #4589D0;
          }
        }
        .info {
      left: 65px;
        }
      }
      &amp;.right {
        float:right;
  
        .user img {
          margin-left: 18px;
        }
        .bubble {
          background: rgba(255, 255, 255, 0.1);
  
          p { color: rgba(245, 245, 245, 0.5); }
          &amp;::before {
            right: -12px;
            background: rgba(255, 255, 255, 0.1);
            -moz-transform: scaleX(-1);
            -webkit-transform: scaleX(-1);
            -o-transform: scaleX(-1);
            transform: scaleX(-1);
            -ms-filter: fliph; /*IE*/
            filter: fliph; /*IE*/
          }
        }
        .info {
      right: 65px;
        }
      }
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="chat-container"&gt;
  &lt;div class="msg"&gt;
   &lt;div class="box left"&gt;
    &lt;div class="user"&gt;
     &lt;img src="https://pbs.twimg.com/profile_images/515651751291006977/MrdYuJ3C_400x400.png" alt="username"&gt;
    &lt;/div&gt;
    &lt;div class="bubble"&gt;
     &lt;p&gt;Hey digger, wie gehts dir. Hast du schon gehört das cih jetzt ein neues chatt-app erstelle für den Brwoser? Nein okey dann schau mal hier&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="info"&gt;
     &lt;b class="pe-clock"&gt;&lt;/b&gt; &lt;b&gt;Sent&lt;/b&gt; 8:50 AM, &lt;b&gt;From&lt;/b&gt; Cologne
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="msg"&gt;
   &lt;div class="box right"&gt;
    &lt;div class="user"&gt;
     &lt;img src="https://pbs.twimg.com/profile_images/515651751291006977/MrdYuJ3C_400x400.png" alt="username"&gt;
    &lt;/div&gt;
    &lt;div class="bubble"&gt;
     &lt;p&gt;Hey digger, wie gehts dir.&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="info"&gt;
     &lt;b class="pe-clock"&gt;&lt;/b&gt; &lt;b&gt;Sent&lt;/b&gt; 8:50 AM, &lt;b&gt;From&lt;/b&gt; Cologne
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;&lt;!-- .chat-container --&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>So my question is: how can I give the svg before element and the div itself the same background color. Right now both are overlapping...</p>