Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/filter-effects/filters-opacity-002-test.html
<!DOCTYPE html> <html> <head> <title>CSS Filter Test: Test opacity shorthand with value 0</title> <link rel="author" title="Naohiro Nakajima" href="mailto:nakajima.jmg@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-opacity"> <link rel="match" href="reference/filters-opacity-002-ref.html"> <meta name="assert" content="CSS opacity filter will apply a transparency to the div element. Since opacity is 0, it has affect on the div to be transparent."> <style type="text/css"> .box1{ width:200px; height: 200px; background: green; } .box2{ width: 200px; height: 200px; background: red; filter: opacity(0); } </style> </head> <body> <p>Test filter opacity CSS shorthand. You should see a green box.</p> <!-- PAGE CONTENT --> <div class="box1"></div> <div class="box2"></div> </body> </html>
/css/filter-effects/reference/filters-opacity-002-ref.html
<!DOCTYPE html> <html> <head> <title>CSS Filter Opacity Reference with value 0</title> <link rel="author" title="Naohiro Nakajima" href="mailto:nakajima.jmg@gmail.com"> <link rel="reviewer" title="Dirk Schulze" href="mailto:dschulze@adobe.com"> <style type="text/css"> div { width: 200px; height:200px; background:green; } </style> </head> <body> <p>Test filter opacity CSS shorthand. You should see a green box.</p> <div></div> </body> </html>