tor-browser

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

at-supports-content-004.html (1263B)


      1 <!doctype html>
      2 <head>
      3 <title>CSS Test (Conditional Rules): @counter-style rules inside @supports</title>
      4 <!-- This test is paired with at-media-content-004.html ; please keep them in sync -->
      5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
      6 <link rel="help" href="https://www.w3.org/TR/css-conditional-3/#contents-of">
      7 <link rel="help" href="https://www.w3.org/TR/css-conditional-3/#at-supports">
      8 <link rel="help" href="https://www.w3.org/TR/css-counter-styles-3/#the-counter-style-rule">
      9 <link rel="match" href="at-supports-001-ref.html">
     10 <meta name="assert"
     11       content="Test passes if @counter-style rules within @supports are supported.">
     12 <link rel="stylesheet" href="/fonts/ahem.css">
     13 <style>
     14 	div {
     15 		background: red;
     16 		color: green;
     17 		font: 100px/1 Ahem, sans-serif;
     18 		width: 100px;
     19 		height: 100px;
     20 	}
     21 	div::before {
     22 		content: counter(test, x);
     23 	}
     24 
     25 	@media all {
     26 		@counter-style x {
     27 			system: cyclic;
     28 			symbols: 'X';
     29 		}
     30 	}
     31 	@media not all {
     32 		@counter-style x {
     33 			system: cyclic;
     34 			symbols: ' ';
     35 		}
     36 	}
     37 </style>
     38 </head>
     39 <body>
     40 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     41 <div class="test1"></div>
     42 </body>
     43 </html>