In my case will-change: transform helped. From the answer here: Fixing Transparent Line Between Div with Clip-Path and Parent Div