mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:42:44 +00:00 
			
		
		
		
	 c0b4083b02
			
		
	
	
		c0b4083b02
		
	
	
	
	
		
			
			When deciding on a box type transformation (blockify/inlinify) for a pseudo element, we have to use the originating element as a reference rather than the parent. (The originating element *is* the parent for its pseudo elements.)
		
			
				
	
	
		
			15 lines
		
	
	
		
			No EOL
		
	
	
		
			197 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			No EOL
		
	
	
		
			197 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <style>
 | |
| * {
 | |
|     font: 16px SerenitySans;
 | |
| }
 | |
| .foo {
 | |
|     display: flex;
 | |
|     gap: 1ch;
 | |
| }
 | |
| .foo:before {
 | |
|     content: "well";
 | |
| }
 | |
| .foo:after {
 | |
|     content: "friends";
 | |
| }
 | |
| </style><div class="foo">hello</div> |