mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:52:46 +00:00 
			
		
		
		
	 b63e393cef
			
		
	
	
		b63e393cef
		
	
	
	
	
		
			
			Also add a basic test that documents how these media features currently get serialized, even if they're not identical to other browsers yet.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			491 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			491 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <head><style>
 | |
| @media only screen { }
 | |
| @media only screen and (min-width: 20px) and (max-width: 40px) { }
 | |
| @media only screen and (min-resolution: 96dpi) { }
 | |
| @media only screen and (min-resolution: 2dppx) { }
 | |
| @media only screen and (min-resolution: 96dpcm) { }
 | |
| </style></head>
 | |
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         let sheet = document.head.firstChild.sheet
 | |
|         for (rule of sheet.cssRules) {
 | |
|             println(rule.cssText);
 | |
|         }
 | |
|     });
 | |
| </script>
 |