mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
LibWeb: Don't resolve flow-relative values for float
too early
This allows `getComputedStyle()` to return the correct value if `float` is set to `inline-start` or `inline-end`
This commit is contained in:
parent
3f5c339d59
commit
28b24b72bc
Notes:
github-actions[bot]
2025-06-17 07:27:49 +00:00
Author: https://github.com/tcl3
Commit: 28b24b72bc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5109
Reviewed-by: https://github.com/gmta ✅
4 changed files with 36 additions and 15 deletions
|
@ -1164,9 +1164,10 @@ void BlockFormattingContext::layout_floating_box(Box const& box, BlockContainer
|
|||
};
|
||||
|
||||
// Next, float to the left and/or right
|
||||
if (box.computed_values().float_() == CSS::Float::Left) {
|
||||
// FIXME: Honor writing-mode, direction and text-orientation.
|
||||
if (box.computed_values().float_() == CSS::Float::Left || box.computed_values().float_() == CSS::Float::InlineStart) {
|
||||
float_box(FloatSide::Left, m_left_floats);
|
||||
} else if (box.computed_values().float_() == CSS::Float::Right) {
|
||||
} else if (box.computed_values().float_() == CSS::Float::Right || box.computed_values().float_() == CSS::Float::InlineEnd) {
|
||||
float_box(FloatSide::Right, m_right_floats);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue