mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 20:13:46 +00:00 
			
		
		
		
	icons: Do not allow stroke property via the style tag in svgs.
We already had a lint rule for this, but we did not disallow setting it from the style side. There is no existing violation of this rule, but it's still better to have this rule in place.
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							22d8c725eb
						
					
				
				
					commit
					e2011fcd97
				
			| @@ -990,6 +990,11 @@ svg_rules = RuleList( | ||||
|             "description": "System icons ignore fill-rule values, so do not include the fill-rule property.", | ||||
|             "include_only": {"web/shared/icons/", "web/images/icons/"}, | ||||
|         }, | ||||
|         { | ||||
|             "pattern": "fill-rule:", | ||||
|             "description": "System icons ignore fill-rule values, so do not include the fill-rule property.", | ||||
|             "include_only": {"web/shared/icons/", "web/images/icons/"}, | ||||
|         }, | ||||
|         { | ||||
|             "pattern": r"stroke=(['\"])(.*?)\1", | ||||
|             "description": "System icons ignore stroke values, so do not include the stroke property.", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user