Strange diagonal lines in Chrome/Chromium (bug?)

前端 未结 3 879
我寻月下人不归
我寻月下人不归 2020-12-14 02:00

When I use CSS filters, shadows, transformations, SVG (or similar), my Chrome/Chromium shows a strange diagonal lines:

    filter:drop-shadow(0px 0px 10px #d         


        
3条回答
  •  长情又很酷
    2020-12-14 02:39

    As indicated above it is a GPU issue but the temporary workaround works great for me:

    div {
        position: relative;
        z-index: 0;
    }
    
    div:before {
        content: '';
        display: block;
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        z-index: -1;
        background: inherit;
    }
    

提交回复
热议问题