I'm currently attempting to design a sophisticated clip-path
using a logo in CSS, but I keep receiving an error stating "Invalid Property Value." The X and Y coordinates have been computed based on dimensions of 508px x 190px
https://i.sstatic.net/Yhqbp.png
This is the logo that is serving as my inspiration
Below is the corresponding CSS:
.container {
width: 508px;
height: 190px;
margin: 0 auto;
background: #fff;
border: 1px solid #ebebeb;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoBAMAAAB+0KVeAAAAHlBMVEUAAABkZGRkZGRkZGRkZGRkZGRkZGRkZGRkZGSH0mEbAAAACnRSTlMAzDPDPPPYnGMw2CgMzQAAAChJREFUKM9jgAPOAgZMwGIwKkhXQSUY0BCCMxkEYUAsEM4cjI4fwYIAf2QMNbUsZjcAAAAASUVORK5CYII=');
background-size: 10px;
padding-left: 5px;
padding-top: 5px;
}
.logo-clip {
width: 100%;
height: 100%;
background-color: purple;
clip-path:
polygon(
0 0,
12% 0,
12% 75%,
26% 75%,
26% 48%,
37% 48%,
37% 29%,
26% 29%
26% 0,
37% 0,
57% 69%,
57% 0,
69% 0,
69% 34%,
82% 0,
98% 0,
78% 48%,
100% 100%,
84% 100%,
69% 63%,
69% 100%,
51% 100%,
37% 49%,
37% 100%,
0 100%,
0 0
);
}
HTML:
<div class="container">
<div class="logo-clip"></div>
</div>
Can someone point out what I might be doing wrong? I've meticulously plotted 26 points and included their X/Y pairs in the polygon 🤦🏻♂️