tor-browser

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

at-supports-content-002.html (1206B)


      1 <!doctype html>
      2 <head>
      3 <title>CSS Test (Conditional Rules): @font-face rules inside @supports</title>
      4 <!-- This test is paired with at-media-content-002.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-fonts-3/#font-face-rule">
      9 <link rel="match" href="at-supports-001-ref.html">
     10 <meta name="assert"
     11       content="Test passes if @font-face rules within @supports are supported.">
     12 <style>
     13 	div {
     14 		background: red;
     15 		color: green;
     16 		font: 100px/1 Blockify, sans-serif;
     17 		width: 100px;
     18 	}
     19 
     20 	@supports (color: blue) {
     21 		@font-face {
     22 			font-family: 'Blockify';
     23 			src: url('/fonts/Ahem.ttf');
     24 		}
     25 	}
     26 	@supports not (color: blue) {
     27 		@font-face {
     28 			font-family: 'Blockify';
     29 			src: local('Arial'), url('/fonts/fail.woff');
     30 		}
     31 	}
     32 </style>
     33 </head>
     34 <body>
     35 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     36 <div class="test1">X</div>
     37 </body>
     38 </html>