LibWeb: Position absolute block-level boxes below previous siblings
Some checks are pending
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run

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
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