mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	 9f24c1b34c
			
		
	
	
		9f24c1b34c
		
	
	
	
	
		
			
			When embedding an SVG in an img element, if the external SVG's root element has both width and height attributes, but no viewBox attribute, we now create a fallback viewBox with "0 0 width height". This appears to match the behavior of other browsers. Inspired by discussion on Mozilla's bug tracker: https://bugzilla.mozilla.org/show_bug.cgi?id=614649
		
			
				
	
	
		
			1 line
		
	
	
		
			No EOL
		
	
	
		
			87 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			1 line
		
	
	
		
			No EOL
		
	
	
		
			87 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><img src="svg-without-viewbox.svg" style="display: block; width: 50px;"> |