mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:42:44 +00:00 
			
		
		
		
	 9e99368694
			
		
	
	
		9e99368694
		
	
	
	
	
		
			
			This makes multiple levels of quote actually use different quotation marks, instead of always the first available pair of them. Each Layout::Node remembers what the quote-nesting level was before its content was evaluated, so that we can re-use this number in `apply_style()`. This is a bit hacky, since we end up converting the `content` value into a string twice. `StyleProperties::content()` now takes an initial quote-nesting level, and returns the final level after that content.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			559 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			559 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html>
 | |
| <style>
 | |
|     span::before {
 | |
|         content: open-quote;
 | |
|     }
 | |
|     span::after {
 | |
|         content: close-quote;
 | |
|     }
 | |
|     .a {
 | |
|         quotes: none;
 | |
|     }
 | |
|     .b {
 | |
|         quotes: auto;
 | |
|     }
 | |
|     .c {
 | |
|         quotes: "(" ")" "{" "}" "[" "]";
 | |
|     }
 | |
| </style>
 | |
| <div class="a"><span>a<span>b<span>c<span>d<span>e</span>f</span>g</span>h</span>i</span></div>
 | |
| <div class="b"><span>a<span>b<span>c<span>d<span>e</span>f</span>g</span>h</span>i</span></div>
 | |
| <div class="c"><span>a<span>b<span>c<span>d<span>e</span>f</span>g</span>h</span>i</span></div>
 |