Solve the problem of overflow+border-radius+transform rounded corners

There are other versions online, but none of them work for me, here is my code on Chrome. overflow: hidden still cannot be used normally, just replace it with unset. If readers have a better solution, please leave a message, thank you.

<figure>
   <img :src="item.photo" :alt="item.title">
 </figure>
figure {
  border-radius: 10px;
  background: #2f3238;
  /*overflow: hidden;*/
  overflow: unset;
  position: absolute; /* this breaks the overflow:hidden in Chrome/Opera */ 
 /* this fixes the overflow:hidden in Chrome */
  -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
}

figure img {
  display: block;
  transition: opacity 1s, transform 1s;
}

figure:hover img {
  opacity: 0.8;
  transform: scale3d(1.1,1.1,1);
}
{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324113078&siteId=291194637