mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	LibWeb: Measure intrinsic block width *around* children's border edge
When calculating the intrinsic width of a block-level box, we were previously measuring the content boxes of children. This meant that shrink-to-fit sized blocks didn't gain enough width to contain children with horizontal padding and/or border.
This commit is contained in:
		
							parent
							
								
									4f91616759
								
							
						
					
					
						commit
						c2a66b77df
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -410,7 +410,7 @@ void BlockFormattingContext::layout_block_level_children(BlockContainer const& b | |||
|         } | ||||
| 
 | ||||
|         content_height = max(content_height, box_state.offset.y() + box_state.content_height + box_state.margin_box_bottom()); | ||||
|         content_width = max(content_width, box_state.content_width); | ||||
|         content_width = max(content_width, box_state.border_box_width()); | ||||
| 
 | ||||
|         if (independent_formatting_context) | ||||
|             independent_formatting_context->parent_context_did_dimension_child_root_box(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling