Support justify-self on absolutely positioned elements (#34235)

* Support justify-self on absolutely positioned elements

Signed-off-by: L Ashwin B <lashwinib@gmail.com>

* updating test expectations

Signed-off-by: L Ashwin B <lashwinib@gmail.com>

---------

Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
chickenleaf 2024-11-13 19:44:44 +05:30 committed by GitHub
parent 114cf9a1cc
commit 91f96cc9dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 37 deletions

View file

@ -492,7 +492,7 @@ impl HoistedAbsolutelyPositionedBox {
end: box_offset.inline_end,
};
let inline_alignment = match inline_box_offsets.either_specified() {
true => AlignFlags::START | AlignFlags::SAFE,
true => style.clone_justify_self().0 .0,
false => shared_fragment.resolved_alignment.inline,
};