mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:12:45 +00:00 
			
		
		
		
	LibWeb: Align baseline of inline-block with non-zero top border/padding
We were not adjusting the fragment baseline for inline-blocks that had some border and/or padding size up top.
This commit is contained in:
		
							parent
							
								
									54ffe79d70
								
							
						
					
					
						commit
						ed1576eea8
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -98,7 +98,7 @@ static float box_baseline(FormattingState const& state, Box const& box) | |||
| { | ||||
|     auto const& box_state = state.get(box); | ||||
|     if (!box_state.line_boxes.is_empty()) | ||||
|         return box_state.offset.y() + box_state.line_boxes.last().baseline(); | ||||
|         return box_state.border_box_top() + box_state.offset.y() + box_state.line_boxes.last().baseline(); | ||||
|     if (box.has_children() && !box.children_are_inline()) { | ||||
|         auto const* child_box = box.last_child_of_type<Box>(); | ||||
|         VERIFY(child_box); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling