From 91f96cc9dd028939715a2854b11bbdade6050a5e Mon Sep 17 00:00:00 2001 From: chickenleaf Date: Wed, 13 Nov 2024 19:44:44 +0530 Subject: [PATCH] Support justify-self on absolutely positioned elements (#34235) * Support justify-self on absolutely positioned elements Signed-off-by: L Ashwin B * updating test expectations Signed-off-by: L Ashwin B --------- Signed-off-by: L Ashwin B --- components/layout_2020/positioned.rs | 2 +- .../abspos/safe-justify-self-htb.html.ini | 36 ------------------- 2 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 tests/wpt/meta/css/css-align/abspos/safe-justify-self-htb.html.ini diff --git a/components/layout_2020/positioned.rs b/components/layout_2020/positioned.rs index 0db018d2055..72194636914 100644 --- a/components/layout_2020/positioned.rs +++ b/components/layout_2020/positioned.rs @@ -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, }; diff --git a/tests/wpt/meta/css/css-align/abspos/safe-justify-self-htb.html.ini b/tests/wpt/meta/css/css-align/abspos/safe-justify-self-htb.html.ini deleted file mode 100644 index bafb7a7d2c2..00000000000 --- a/tests/wpt/meta/css/css-align/abspos/safe-justify-self-htb.html.ini +++ /dev/null @@ -1,36 +0,0 @@ -[safe-justify-self-htb.html] - [.item 7] - expected: FAIL - - [.item 8] - expected: FAIL - - [.item 9] - expected: FAIL - - [.item 10] - expected: FAIL - - [.item 11] - expected: FAIL - - [.item 12] - expected: FAIL - - [.item 19] - expected: FAIL - - [.item 20] - expected: FAIL - - [.item 21] - expected: FAIL - - [.item 22] - expected: FAIL - - [.item 23] - expected: FAIL - - [.item 24] - expected: FAIL