Это логический результат clip-path
, поскольку он обрезает элемент и его содержимое.
В этом случае clip-path
можно заменить простым фоном:
.clip-path {
clip-path: polygon(70% 51%, 100% 0, 100% 100%, 0 100%, 0 79%);
background: red;
}
.background {
background:
linear-gradient(to bottom right,transparent 49.8%,red 50%) right /59% 100%,
linear-gradient(to bottom right,transparent 49.8%,red 50%) bottom right/153% 61%;
background-repeat:no-repeat;
}
.box {
padding: 10px;
margin:10px;
font-size:25px;
border:1px solid;
}
<div class="clip-path box">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec suscipit, ex a egestas vulputate, sapien arcu efficitur risus, eget volutpat lacus nibh sit amet tellus. Maecenas a risus sed tellus laoreet vulputate. Ut sit amet placerat risus. Etiam diam
eros, ultrices in luctus ac, malesuada nec lectus.
</div>
<div class="background box">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec suscipit, ex a egestas vulputate, sapien arcu efficitur risus, eget volutpat lacus nibh sit amet tellus. Maecenas a risus sed tellus laoreet vulputate. Ut sit amet placerat risus. Etiam diam
eros, ultrices in luctus ac, malesuada nec lectus.
</div>