wpt / css / filter-effects / empty-element-with-filter-002.html

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

/css/filter-effects/empty-element-with-filter-002.html

<!DOCTYPE html>
<title>CSS Filter Effects: ref filters on zero-sized block elements with no visible content</title>
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#FilterProperty">
<link rel="match" href="reference/green-100x100.html">
<meta name="assert" content="This test ensures we properly render filters on block elements that are zero-sized with no visible content.">
<style>
  .flood {
    width: 0px;
    height: 0px;
    filter: url(#f_flood);
  }
</style>
<div class="flood"></div>
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1">
  <defs>
    <filter id="f_flood" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" x="0" y="0" width="100" height="100">
      <feFlood flood-color="green"/>
    </filter>
  </defs>
</svg>

/css/filter-effects/reference/green-100x100.html

<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: green"></div>