mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:12:45 +00:00 
			
		
		
		
	LibWeb: Fix broken conversion of CSS <resolution> dpi/dpcm to dppx
Also add a basic test that documents how these media features currently get serialized, even if they're not identical to other browsers yet.
This commit is contained in:
		
							parent
							
								
									b256e52586
								
							
						
					
					
						commit
						b63e393cef
					
				
					 3 changed files with 33 additions and 2 deletions
				
			
		|  | @ -0,0 +1,16 @@ | |||
| <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> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling