mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	LibWeb/SVG: Support url() in the stroke attribute
This allows you to draw gradients in strokes, for example.
This commit is contained in:
		
							parent
							
								
									8993a710f8
								
							
						
					
					
						commit
						42a183720b
					
				
					 8 changed files with 51 additions and 12 deletions
				
			
		|  | @ -7453,6 +7453,7 @@ Parser::ParseErrorOr<NonnullRefPtr<StyleValue>> Parser::parse_css_value(Property | |||
|             return parsed_value.release_nonnull(); | ||||
|         return ParseError ::SyntaxError; | ||||
|     case PropertyID::Fill: | ||||
|     case PropertyID::Stroke: | ||||
|         if (component_values.size() == 1) { | ||||
|             if (auto parsed_url = FIXME_TRY(parse_url_value(component_values.first()))) | ||||
|                 return parsed_url.release_nonnull(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Luke Wilde
						Luke Wilde