wpt / css / css-masking / mask-image / backdrop-filter-good-and-bad-mask-image.html

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

/css/css-masking/mask-image/backdrop-filter-good-and-bad-mask-image.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>Backdrop-filter with invalid mask-image URL</title>
<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-mask-image">
<link rel="match" href="backdrop-filter-good-and-bad-mask-image-ref.html">

<style>
  body {
    background-color: yellow;
  }

  .double-mask {
    /* Multiple mask layers: invalid mask is ignored, valid mask takes effect. */
    mask-image: url("invalid://nonexistent"), linear-gradient(black, black);
  }

  .backdrop-filter {
    backdrop-filter: invert(1);
    background-color: rgba(255, 255, 255, 0.5);
  }
</style>

<p class="backdrop-filter double-mask">Backdrop-filter with double mask-image</p>

/css/css-masking/mask-image/backdrop-filter-good-and-bad-mask-image-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>Reference for backdrop-filter with invalid mask-image URL</title>

<style>
  body {
    background-color: yellow;
  }

  /* Reference for backdrop-filter only - should show inverted background */
  .backdrop-filter {
    backdrop-filter: invert(1);
    background-color: rgba(255, 255, 255, 0.5);
  }
</style>

<p class="backdrop-filter double-mask">Backdrop-filter with double mask-image</p>