mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Reverse space-between alignment properly for absolute children of flex containers (#33406)
When aligning with `space-between` the space should be allocated on the `flex-end` side of the container ie it should be mapped to `flex-start` (`start` and reversing if necssary). Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
68246df89e
commit
ed5dc43f16
2 changed files with 6 additions and 16 deletions
|
@ -892,6 +892,8 @@ impl FlexContainer {
|
|||
AlignFlags::END | AlignFlags::SAFE
|
||||
},
|
||||
(AlignFlags::STRETCH, false) => AlignFlags::START | AlignFlags::SAFE,
|
||||
(AlignFlags::SPACE_BETWEEN, false) => AlignFlags::START | AlignFlags::SAFE,
|
||||
(AlignFlags::SPACE_BETWEEN, true) => AlignFlags::END | AlignFlags::SAFE,
|
||||
_ => value,
|
||||
};
|
||||
let cross = make_flex_only_values_directional_for_absolutes(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue