Chrome bug - border radius not clipping contents when combined with css transition

前端 未结 1 1106
予麋鹿
予麋鹿 2021-01-04 03:18

My issue is that during CSS transition border-radius temporarily stops clipping elements inside if transition of overlapping element involves transform

相关标签:
1条回答
  • 2021-01-04 03:51

    After some more experiments I've finally found the solution. Sometimes simple ones are the hardest to find. In this case #above {z-index: 1;} (like in http://jsfiddle.net/UhAVG/1/) solves the issue. Wild guess is that z-index prevents some optimization that combines operations from single layer and doing so mistakenly optimizes out applying border-radius on element. With layers separated this is no longer the case.

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