mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-30 21:01:00 +00:00 
			
		
		
		
	
		
			
	
	
		
			40 lines
		
	
	
	
		
			875 B
		
	
	
	
		
			CSS
		
	
	
	
	
	
		
		
			
		
	
	
			40 lines
		
	
	
	
		
			875 B
		
	
	
	
		
			CSS
		
	
	
	
	
	
|   | /* https://svgwg.org/svg2-draft/styling.html#UAStyleSheet */ | ||
|  | 
 | ||
|  | @namespace url(http://www.w3.org/2000/svg); | ||
|  | @namespace xml url(http://www.w3.org/XML/1998/namespace); | ||
|  | 
 | ||
|  | svg:not(:root), image, marker, pattern, symbol { overflow: hidden; } | ||
|  | 
 | ||
|  | *:not(svg), | ||
|  | *:not(foreignObject) > svg { | ||
|  |     transform-origin: 0 0; | ||
|  | } | ||
|  | 
 | ||
|  | *[xml|space=preserve] { | ||
|  |     text-space-collapse: preserve-spaces; | ||
|  | } | ||
|  | 
 | ||
|  | /* FIXME: Allow setting the rest of these to `display: none`. | ||
|  |           Currently that breaks <use> and <mask> and probably others. */ | ||
|  | desc, title, metadata, | ||
|  | pattern, linearGradient, radialGradient, | ||
|  | script, style { | ||
|  |     display: none !important; | ||
|  | } | ||
|  | /* | ||
|  | defs, | ||
|  | clipPath, mask, marker, | ||
|  | desc, title, metadata, | ||
|  | pattern, linearGradient, radialGradient, | ||
|  | script, style, | ||
|  | symbol { | ||
|  |     display: none !important; | ||
|  | } | ||
|  | */ | ||
|  | :host(use) > symbol { | ||
|  |     display: inline !important; | ||
|  | } | ||
|  | :link, :visited { | ||
|  |     cursor: pointer; | ||
|  | } |