Webkit not respecting overflow:hidden with border radius

前端 未结 8 1646
抹茶落季
抹茶落季 2020-12-09 17:03

I have a lovely Star Trek Red Alert animation using CSS3. One of my parent elements has a border-radius along with overflow:hidden so that any con

8条回答
  •  温柔的废话
    2020-12-09 17:45

    I found another possible solution to this bug, using CSS3 clip-path, but it only works in recent versions of webkit (it seems to work in Chrome 24, but not Safari 6.0.2). The following will clip a circle around the element:

    -webkit-clip-path: circle(50%, 50%, 100%);
    

    Hopefully this will be implemented by more browsers soon! It seems like this feature could have a lot of cool applications. Here's a relevant blog post: http://blog.romanliutikov.com/coding/css-clip-path-landed-in-webkit/.

提交回复
热议问题