tor-browser

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

at-media-003.html (1210B)


      1 <!doctype html>
      2 <head>
      3 <title>CSS Test (Conditional Rules): Invalid rules after @media</title>
      4 <!-- This test is paired with at-supports-045.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="match" href="at-supports-001-ref.html">
      8 <meta name="assert"
      9       content="Test passes if rules required to occur before all style rules are invalid after @media.">
     10 <style>
     11 	@namespace x "http://www.w3.org/";
     12 	@media { /* invalidates later rules even if empty */ }
     13 	@import "support/fail.css";
     14 	@namespace y "http://www.w3.org/";
     15 
     16 	.test1, x|div { background: green; }
     17 	.test1, y|div { background: red; }
     18 
     19 	div {
     20 		background: red;
     21 		height: 50px;
     22 		width: 100px;
     23 	}
     24 </style>
     25 <style>
     26 	@media all {
     27 		/* @supports isn't invalidated, only misordered stuff after it is */
     28 		.test2 { background: green; }
     29 	}
     30 	@import "support/fail.css";
     31 </style>
     32 </head>
     33 <body>
     34 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
     35 <div class="test1"></div>
     36 <div class="test2"></div>
     37 </body>
     38 </html>