Status: FAIL | Duration: 10ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/filter-effects/filter-grayscale-004.html
<!doctype html> <html lang="en"> <!-- Submitted from TestTWF Paris --> <head> <title>CSS Filter Test: apply a filter to a div with background-color</title> <link rel="author" title="Chris Lilley" href="mailto:chris@w3.org"> <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#FilterFunction"> <link rel="match" href="filter-grayscale-ref.html"> <meta name="assert" content="grayscale syntax (1)"> <style type="text/css"> .testzone{ position: relative; } .box{ background-color: blue; height: 30px; width: 30px; } .filter{ filter: grayscale(1); } </style> </head> <body> <p>The test passes if the little box looks grey.</p> <div class="testzone"> <div class="box filter"></div> </div> </body> </html>
/css/filter-effects/filter-grayscale-ref.html
<!doctype html> <html lang="en"> <!-- Submitted from TestTWF Paris --> <head> <title>CSS Filter Reference file</title> <link rel="author" title="Pierre Van der Eecken" href="mailto:pierre.vandereecken@gmail.com"> <style type="text/css"> .testzone{ position: relative; } .box{ background-color: #121212; height: 30px; width: 30px; } </style> </head> <body> <p>The test passes if the little box looks grey.</p> <div class="testzone"> <div class="box"></div> </div> </body> </html>