Status: FAIL | Duration: 31ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/filter-effects/svg-feimage-001.html
<!DOCTYPE html> <html> <head> <title>Filter Effects Test: feImage referencing an IRI</title> <link rel="author" title="Dirk Schulze" href="mailto:dschulze@adobe.com"> <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#feImageElement"> <link rel="match" href="reference/svg-feimage-ref.html"> <meta name="flags" content="svg"> <meta name="assert" content="The feImage primitve applied to the red rect should reference and display the green rect by it's IRI. - The rect is black to avoid color interpolation issues."> <style type="text/css"> svg { width: 500px; height: 500px; } </style> </head> <body> <p>The test passes if you see a black square and no red.</p> <svg> <defs> <rect id="blackRect" width="300" height="300" fill="black"/> <filter id="filter" x="0" y="0" width="1" height="1"> <feImage xlink:href="#blackRect"/> </filter> </defs> <rect x="1" y="1" width="298" height="298" fill="red"/> <rect width="300" height="300" fill="red" filter="url(#filter)"/> </svg> </body> </html>
/css/filter-effects/reference/svg-feimage-ref.html
<!DOCTYPE html> <html> <head> <title>CSS Reftest Reference</title> <link rel="author" title="Dirk Schulze" href="mailto:dschulze@adobe.com"> <meta name="flags" content="svg"> <style type="text/css"> svg { width: 500px; height: 500px; } </style> </head> <body> <p>The test passes if you see a black square and no red.</p> <svg> <rect width="300" height="300" fill="black"/> </svg> </body> </html>