tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

at-supports-036.html (1206B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 	<meta charset="utf-8">
      5 	<title>CSS Test (Conditional Rules): Incorrect syntax of supports condition</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 must be enclosed by one opening parenthesis '(' and one closing parenthesis ')'.">
     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 and padding: 0)
     30 		{
     31 			div {background-color: red !important;}
     32 		}
     33 
     34 		@supports (margin: 0) { div {background-color: green;} }
     35 	</style>
     36 </head>
     37 
     38 <body>
     39 
     40 	<p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     41 
     42 	<div></div>
     43 
     44 </body>
     45 </html>