mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibWeb: Apply remaining vertical float clearance to next block level box
Whenever we generate line boxes, we might end up with a residual vertical float clearance by way of having a `<br>` with `clear: ..` set. Set the Y offset of the next block level box to place by this vertical clearance. Relates to #4058.
This commit is contained in:
parent
a83145c751
commit
15103d172c
Notes:
github-actions[bot]
2025-03-27 17:22:53 +00:00
Author: https://github.com/gmta
Commit: 15103d172c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4120
6 changed files with 47 additions and 5 deletions
|
@ -84,9 +84,8 @@ void InlineFormattingContext::run(AvailableSpace const& available_space)
|
|||
|
||||
CSSPixels content_height = 0;
|
||||
|
||||
for (auto& line_box : m_containing_block_used_values.line_boxes) {
|
||||
for (auto& line_box : m_containing_block_used_values.line_boxes)
|
||||
content_height += line_box.height();
|
||||
}
|
||||
|
||||
// NOTE: We ask the parent BFC to calculate the automatic content width of this IFC.
|
||||
// This ensures that any floated boxes are taken into account.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue