LibWeb: Add flow relative values for the clear property
Some checks are pending
CI / macOS, arm64, Sanitizer_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers_CI, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer_CI, Clang (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

Currently `inline-start` and `inline-end` are always treated as `left`
and `right` respectively.
This commit is contained in:
Tim Ledbetter 2025-06-16 22:45:32 +01:00 committed by Jelle Raaijmakers
commit 30cdacc05a
Notes: github-actions[bot] 2025-06-17 07:27:43 +00:00
6 changed files with 78 additions and 3 deletions

View file

@ -939,9 +939,10 @@ BlockFormattingContext::DidIntroduceClearance BlockFormattingContext::clear_floa
float_side.clear();
};
if (computed_values.clear() == CSS::Clear::Left || computed_values.clear() == CSS::Clear::Both)
// FIXME: Honor writing-mode, direction and text-orientation.
if (first_is_one_of(computed_values.clear(), CSS::Clear::Left, CSS::Clear::Both, CSS::Clear::InlineStart))
clear_floating_boxes(m_left_floats);
if (computed_values.clear() == CSS::Clear::Right || computed_values.clear() == CSS::Clear::Both)
if (first_is_one_of(computed_values.clear(), CSS::Clear::Right, CSS::Clear::Both, CSS::Clear::InlineEnd))
clear_floating_boxes(m_right_floats);
return result;