wpt / css / filter-effects / svg-empty-hidden-foreignobject-with-filter-001.html

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

/css/filter-effects/svg-empty-hidden-foreignobject-with-filter-001.html

<!DOCTYPE html>
<title>CSS Filter Effects: ref filters on a hidden and empty foreignObject element</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 foreignObjects elements that are visibility hidden and empty.">
<body>
  <svg width="600" height="200">
    <defs>
      <filter id="myfilter" x="0" y="0" width="100" height="100" filterUnits="userSpaceOnUse">
        <feFlood flood-color="green" flood-opacity="1"/>
      </filter>
    </defs>
    <foreignObject style="visibility: hidden;" x="0" y="0" width="0" height="0" filter="url(#myfilter)"></foreignObject>
    </svg>
</body>
</html>

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

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