wpt / css / filter-effects / backdrop-filter-plus-opacity.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/filter-effects/backdrop-filter-plus-opacity.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Correctly apply backdrop-filter with opacity</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="match"  href="backdrop-filter-plus-opacity-ref.html">

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

<div class="greenbox"></div>
<div class="filter"></div>

<style>
.greenbox {
  position: absolute;
  background: green;
  width: 100px;
  height: 100px;
  top: 100px;
  left: 60px;
}
.filter {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 50px;
  left: 10px;
  backdrop-filter: invert(1);
  opacity: 0;
}
</style>

/css/filter-effects/backdrop-filter-plus-opacity-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Correctly apply backdrop-filter with opacity</title>
<link rel="author" href="mailto:masonf@chromium.org">



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

<div class="greenbox"></div>


<style>
.greenbox {
  position: absolute;
  background: green;
  width: 100px;
  height: 100px;
  top: 100px;
  left: 60px;
}
</style>