wpt / css / filter-effects / backdrop-filters-grayscale-003.html

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

/css/filter-effects/backdrop-filters-grayscale-003.html

<!DOCTYPE html>
<html>
<head>
<title>CSS Backdrop Filters: Grayscale(100%) with no background</title>
<link rel="author" title="Jay Dasika" href="mailto:jaydasika@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#supported-filter-functions">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=527452">
<link rel="match" href="reference/backdrop-filters-grayscale-003-ref.html">
<meta name="assert" content="Check that backdrop-filter works with grayscale(100%) and no background."/>

<style>
div {
  width: 100px;
  height: 100px;
  position: absolute;
}

.background_object {
  left: 10px;
  top: 10px;
  background: orange;
}

.grayscale_backdrop {
  left: 60px;
  top: 60px;
  backdrop-filter: grayscale(100%);
}
</style>
</head>

<body>
  <div class="background_object"></div>
  <div class="grayscale_backdrop"></div>
</body>
</html>

/css/filter-effects/reference/backdrop-filters-grayscale-003-ref.html

<!DOCTYPE html>
<html>
<head>
<style>
div {
  width: 100px;
  height: 100px;
  position: absolute;
}

.background_object {
  left: 10px;
  top: 10px;
  background: orange;
}

.grayscale {
  left: 60px;
  top: 60px;
  width: 50px;
  height: 50px;
  background: #ACACAC;
}
</style>
</head>
<body>
  <div class="background_object"></div>
  <div class="grayscale"></div>
</body>
</html>