I'm trying to make something like the image:
.wrapper {
  display:flex;
  width: 500px;
  height:100px;
}
.rectangle1 {
  background:red;
  width:33.333%;
}
.rectangle2 {
  background:blue;
  width:33.333%;
}
.rectangle3 {
  background:green;
  width:33.333%;
}<div class="wrapper">
  <div class="rectangle1"></div>
  <div class="rectangle2"></div>
  <div class="rectangle3"></div>
</div>I can't find any solution to make the side of the rectangle to be a pointing shape (triangle) , any help? thanks!

 
    