Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rendering/Flickering/Glitch issue in Chrome using CSS 'backdrop-filter:blur'

I do face a rendering problem using backdrop-filter: blur(12px); in Chrome 76 on MacOS Mojave. Whenever I start to hover with my mouse over the opened tabs in Chrome, the div using the backdrop-filter starts flickering and the div is subdivided into smaller rectangles having different colors and are split by horizontal lines with shadows.

I don't know if it's a rendering problem, a glitch, some overflow problem or just a bug in Chrome.

Here is the fiddle.

I already tried variations of:

  • transform: translateZ(0);
  • backface-visibility: hidden;
  • overflow: hidden;
  • margin: 0
  • will-change:top;
  • position: static;

Nothing seemed to work.

Minimal Example:

<html>
<head>
</head>

<body>
    <div id="articleViewOverlay" class="articleViewOverlay">
    </div>
</body>

</html>
.articleViewOverlay {
    position: fixed;
    width: 200px;
    height: 200px;
    border-style: dashed;
    backdrop-filter: blur(12px);
    background-color: rgba(125, 125, 125, 0.4); 
    margin: 0; 
    overflow: hidden;
}
like image 609
Georg Avatar asked Aug 31 '19 08:08

Georg


Video Answer


2 Answers

From your description, my guess is that you're encountering this bug. If so, feel free to star that bug (top-left corner) to get updates. There aren't any workarounds at this point, but it's work in progress.

like image 101
Mason Freed Avatar answered Sep 23 '22 13:09

Mason Freed


I had the same problem, adding this to the element being blurred fixes it:

 -webkit-transform:translate3d(0,0,0);

because if forces gpu rendering

like image 21
Marghen Avatar answered Sep 26 '22 13:09

Marghen