Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/filter-effects/filter-invert-001-test.html
<!DOCTYPE html> <html> <head> <title>CSS filter grayscale: CSS grayscale filter shorthand</title> <link rel="author" title="Tien Le" href="mailto:shonentokyo@gmail.com"> <link rel="reviewer" title="Dirk Schulze" href="mailto:dschulze@adobe.com"> <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#FilterProperty"> <link rel="help" href="https://www.w3.org/TR/filter-effects-1/#funcdef-filter-invert"> <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#invertEquivalent"> <link rel="match" href="filter-invert-001-ref.html"> <meta name="assert" content="CSS invert filter will apply a color matrix to the div element to invert the colors. Since invert is 0, it has no affect on the div."> <style type="text/css"> div { width: 200px; height: 200px; background-color: yellow; filter: invert(0%); } </style> </head> <body> <p>You should see a yellow rectangle.</p> <div></div> </body> </html>
/css/filter-effects/filter-invert-001-ref.html
<!DOCTYPE html> <html> <head> <title>CSS Filter Sepia Reference</title> <link rel="author" title="Tien Le" href="mailto:shonentokyo@gmail.com"> <link rel="reviewer" title="Dirk Schulze" href="mailto:dschulze@adobe.com"> <style type="text/css"> div { width: 200px; height: 200px; background-color: yellow; } </style> </head> <body> <p>You should see a yellow rectangle.</p> <div></div> </body> </html>