at-supports-038.html (1306B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Test (Conditional Rules): a supports condition declaration can not end with a semi-colon</title> 6 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> 7 <link rel="help" href="http://www.w3.org/TR/css3-conditional/#at-supports" title="6. Feature queries: the '@supports' rule"> 8 <link rel="match" href="at-supports-001-ref.html"> 9 <meta name="flags" content="invalid"> 10 <meta name="assert" content="Each individual single supports condition declaration can not end up with a semi-colon ';'. A semi-colon is a punctuation separator of multiple CSS declarations and thus is not part of an individual CSS declaration per se."> 11 12 <!-- 13 14 supports_condition_in_parens 15 : ( '(' S* supports_condition ')' S* ) | supports_declaration_condition | 16 general_enclosed 17 ; 18 19 --> 20 21 <style> 22 div 23 { 24 background-color: red; 25 height: 100px; 26 width: 100px; 27 } 28 29 @supports (margin: 0;) { div {background-color: red !important;} } 30 31 @supports (margin: 0) { div {background-color: green;} } 32 </style> 33 </head> 34 35 <body> 36 37 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> 38 39 <div></div> 40 41 </body> 42 </html>