<!DOCTYPE html> <html><head> <title>CSS Test (Conditional Rules): Support for @supports within @media</title> <link href="mailto:florian@rivoal.net" rel="author" title="Florian Rivoal"> <link href="http://opera.com" rel="author" title="Opera Software ASA"> <link href="http://www.w3.org/TR/css3-conditional/#at-supports" rel="help"> <link href="reference/at-supports-001-ref.htm" rel="match"> <meta content="" name="flags"> <style> div { background-color:red; height:100px; width:100px; } @media all { @supports (margin: 0) { div { background-color:green; } } } </style> </head> <body> <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> <div></div> </body></html>