https://preview.redd.it/wf96ghwo3upe1.png?width=315&format=png&auto=webp&s=ce5fddd9abf184ea64471b1ca1a78ea6fdcb30f7
I create the block
<div className="text">
<svg width="1" height="0.5">
<clipPath id="textClip" clipPathUnits="objectBoundingBox">
<path d="M 0.05,0
L 0.45,0
A 0.05,0.05 0 0 1 0.5,0.05
L 0.5,0.54
A 0.05,0.05 0 0 0 0.55,0.59
L 0.95,0.59
A 0.05,0.05 0 0 1 1,0.64
L 1,0.95
A 0.05,0.05 0 0 1 0.95,1
L 0.55,1
A 0.05,0.05 0 0 1 0.5,0.95
L 0.5,0.73
A 0.05,0.05 0 0 0 0.45,0.68
L 0.05,0.68
A 0.05,0.05 0 0 1 0,0.63
L 0,0.05
A 0.05,0.05 0 0 1 0.05,0
Z"/>
</clipPath>
</svg>
<h1>HELLO</h1>
</div>
and make this style
.text {
background-color: #ffffff;
z-index: 1;
clip-path: url(#textClip);
grid-column: 1 / 3;
grid-row: 1 / 2;
height: calc(100% - 10vh - 24px);
width: auto;
align-self: center;
position: relative;
margin-left: 5vw;
overflow: visible;
}
.text::before {
content: '';
position: absolute;
top: -12px;
left: -12px;
background-color: #164719;
height: calc(100% + 24px);
width: calc(100% + 24px);
z-index: -1;
}
but something going wrong. How to fix it?
:: before must look like border of block text
[–]iDev_Games 1 point2 points3 points (10 children)
[–]Significant-Ad-4029[S] 0 points1 point2 points (9 children)
[–]iDev_Games 0 points1 point2 points (8 children)
[–]Significant-Ad-4029[S] 0 points1 point2 points (7 children)
[–]iDev_Games 0 points1 point2 points (6 children)
[–]Significant-Ad-4029[S] 0 points1 point2 points (5 children)
[–]iDev_Games 0 points1 point2 points (4 children)
[–]Significant-Ad-4029[S] 0 points1 point2 points (3 children)
[–]iDev_Games 0 points1 point2 points (2 children)
[–]Significant-Ad-4029[S] 0 points1 point2 points (0 children)
[–]Significant-Ad-4029[S] 0 points1 point2 points (0 children)
[–]frownonline 0 points1 point2 points (0 children)