mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:32:44 +00:00 
			
		
		
		
	LibWeb: Parse src: local(...) in CSS @font-face rules
				
					
				
			Note that we don't load the local font as specified, but at least we no longer reject such src properties in the CSS parser. This makes the custom fonts used on http://apple.com/ actually load. :^)
This commit is contained in:
		
							parent
							
								
									e924ea002f
								
							
						
					
					
						commit
						13e2ca6b59
					
				
					 7 changed files with 32 additions and 6 deletions
				
			
		|  | @ -0,0 +1,10 @@ | |||
| <script src="../include.js"></script> | ||||
| <script> | ||||
|     test(() => { | ||||
|         let style = document.createElement("style"); | ||||
|         style.innerText = "@font-face { font-family: 'a1'; src: local('xyz'); }"; | ||||
|         document.head.appendChild(style); | ||||
|         let sheet = style.sheet; | ||||
|         println(sheet.cssRules[0].cssText); | ||||
|     }); | ||||
| </script> | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling