wpt / css / filter-effects / repaint-added-backdrop-filter.html

Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/filter-effects/repaint-added-backdrop-filter.html

<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>backdrop-filter: Correctly repaint added backdrop-filter</title>
<link rel="author" href="mailto:pdr@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="match" href="reference/repaint-added-backdrop-filter-ref.html">
<script src="/common/reftest-wait.js"></script>

<p>Expected: A black box.</p>

<div id="filter"></div>

<style>
  #filter {
    width: 100px;
    height: 100px;
    backdrop-filter: none;
    will-change: opacity;
  }
</style>

<script>
  function doTest() {
    requestAnimationFrame(function() {
      requestAnimationFrame(function() {
        document.getElementById('filter').style.backdropFilter = 'invert(1)';
        takeScreenshot();
      });
    });
  }
  window.addEventListener('load', doTest, false);
</script>

/css/filter-effects/reference/repaint-added-backdrop-filter-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<p>Expected: A black box.</p>
<div id="filter"></div>
<style>
  #filter {
    width: 100px;
    height: 100px;
    background-color: black;
  }
</style>