mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:32:43 +00:00 
			
		
		
		
	 60e35f2a97
			
		
	
	
		60e35f2a97
		
	
	
	
	
		
			
			This provides a rough implementation of the CSS @namespace rule. Currently we just support default namespaces, namespace prefixes are still to come.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			293 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			293 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <style>
 | |
|     * {
 | |
|         font: 20px SerenitySans;
 | |
|     }
 | |
|     a {
 | |
|         padding: 5px;
 | |
|         color: red;
 | |
|     }
 | |
| </style>
 | |
| <style>
 | |
|     @namespace url('http://www.w3.org/1999/xhtml');
 | |
|     a {
 | |
|         padding: 10px;
 | |
|         color: green;
 | |
|     }
 | |
| </style>
 | |
| <p>
 | |
|     <a href="#">Should be green</a>
 | |
| </p>
 |