LibWeb: Position absolute block-level boxes below previous siblings

Whether an absbox is positioned below or to the right of its previous
sibling in an `InlineFormattingContext` is determined by the
display-outside value before blockification, so we store the
pre-blockification `display` value in `ComputedValues` to access it in
`InlineFormattingContext` and position the box accordingly.
This commit is contained in:
Pascal Pomper 2025-09-09 00:35:59 +02:00 committed by Andreas Kling
parent 7867fef8d7
commit 5b1eba7ac8
Notes: github-actions[bot] 2025-09-29 16:39:03 +00:00
9 changed files with 67 additions and 4 deletions

View file

@ -2154,6 +2154,8 @@ void StyleComputer::compute_property_values(ComputedProperties& style) const
style.set_property(property_id, absolutized_value, is_inherited);
});
style.set_display_before_box_type_transformation(style.display());
}
void StyleComputer::resolve_effective_overflow_values(ComputedProperties& style) const