mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 18:02:44 +00:00 
			
		
		
		
	 510dfbb7e6
			
		
	
	
		510dfbb7e6
		
	
	
	
	
		
			
			Anonymous wrapper boxes inherit style from their layout tree parent, and since style data is per-layout-node, we have to manually sync them from parent to anonymous children when something changes. This is not very elegant or efficient, so I've left a FIXME about solving it in a nicer way. This fixes horizontal dog alignment on https://waffles.dog/ :^)
		
			
				
	
	
		
			8 lines
		
	
	
		
			No EOL
		
	
	
		
			213 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			No EOL
		
	
	
		
			213 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!doctype html><style>
 | |
| body {
 | |
|     text-align: center;
 | |
| }
 | |
| </style><body><h1>header</h1>anonymously wrapped text<script>
 | |
| document.body.offsetWidth; // Force a layout.
 | |
| document.body.style.textAlign = 'left';
 | |
| </script> |