|
1 <!doctype html> |
|
2 <html> |
|
3 <head> |
|
4 <title>CSS Test (Conditional Rules): In @supports, parens are required to mix conjunctions with disjunctions</title> |
|
5 <link rel="author" title="Florian Rivoal" href="mailto:florianr@opera.com"> |
|
6 <link rel="help" href="http://www.w3.org/TR/css3-conditional/#at-supports"> |
|
7 <link rel="match" href="at-supports-001-ref.html"> |
|
8 <meta name="flags" content="invalid"> |
|
9 <style> |
|
10 div{ |
|
11 background-color:red; |
|
12 height:100px; |
|
13 width:100px; |
|
14 } |
|
15 @supports (margin:0) { div { background-color:green; } } |
|
16 @supports ((margin: 0) and (display: inline) or (width:1em)) { |
|
17 div { background-color:red; } |
|
18 } |
|
19 </style> |
|
20 </head> |
|
21 <body> |
|
22 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> |
|
23 <div></div> |
|
24 </body> |
|
25 </html> |