Webkit border-radius and overflow bug when using any animation/transition

后端 未结 8 1790
悲哀的现实
悲哀的现实 2020-12-13 04:02

I am having getting a weird bug when I use a combination of overflow, border-radius, and transition. I have a div with an img inside o

相关标签:
8条回答
  • 2020-12-13 04:50

    I added minus z-index value for image and higher value for parent

    li {z-index:10; overflow: hidden;}
    
    li img {z-index: -10;}
    
    0 讨论(0)
  • 2020-12-13 04:59

    The accepted answer didn't work for me because I can't have the clear border increasing the clickable area of the masked element, nor do I want it to obscure that of other elements (and setting the height to 100% didn't solve the issue).

    See my answer to a related question for a possible solution.

    0 讨论(0)
提交回复
热议问题