mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:42:44 +00:00 
			
		
		
		
	 80a78c4deb
			
		
	
	
		80a78c4deb
		
	
	
	
	
		
			
			We shouldn't be putting generated pseudo elements inside elements that can't have children in the first place. This patch fixes two issues: - We stop generating pseudo elements for layout nodes that can't have children anyway. - We mark Layout::BreakNode as not being able to have children.
		
			
				
	
	
		
			3 lines
		
	
	
	
		
			135 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
	
		
			135 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><style>
 | |
|     body ::before { content: "+"; }
 | |
| </style><body><p>P should generate a ::before pseudo.</p><br>BR should not!
 |