mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:02:46 +00:00 
			
		
		
		
	 631a988a57
			
		
	
	
		631a988a57
		
	
	
	
	
		
			
			We now keep the color value as a StyleValue up until we go to paint the gradient, which makes `currentColor` work, along with any other color values that can't be immediately converted into a `Gfx::Color` while parsing.
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			185 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			185 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <html>
 | |
| <style>
 | |
|     div {
 | |
|         color: green;
 | |
|         width: 200px;
 | |
|         height: 200px;
 | |
|         background: linear-gradient(currentColor, white);
 | |
|     }
 | |
| </style>
 | |
| <div></div>
 | |
| </html>
 |