wpt / css / filter-effects / backdrop-filter-basic.html

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

/css/filter-effects/backdrop-filter-basic.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Basic operation of filter</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-basic-ref.html">

<div>
  <p>Expected: A green box and an overlapping black box, with a magenta<br>
  overlapping region.</p>
</div>
<div class="colorbox">
  <div class="filterbox"></div>
</div>

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

/css/filter-effects/backdrop-filter-basic-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Basic operation of filter</title>
<link rel="author" href="mailto:masonf@chromium.org">



<div>
  <p>Expected: A green box and an overlapping black box, with a magenta<br>
  overlapping region.</p>
</div>
<div class="colorbox"></div>
<div class="box2outside"></div>
<div class="box2inside"></div>

<style>
.colorbox {
    position: absolute;
    background: green;
    width: 100px;
    height: 100px;
    left: 10px;
    top: 100px;
}
.box2outside {
    background: black;
    position: absolute;
    width: 100px;
    height: 100px;
    left: 60px;
    top: 150px;
}
.box2inside {
    background: #ff7fff;
    position: absolute;
    width: 50px;
    height: 50px;
    left: 60px;
    top: 150px;
}
</style>