.item) [8,308 100x100]
diff --git a/Tests/LibWeb/Layout/input/flex/reverse-with-justify-content-normal.html b/Tests/LibWeb/Layout/input/flex/reverse-with-justify-content-normal.html
new file mode 100644
index 0000000000..d025e8f233
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/flex/reverse-with-justify-content-normal.html
@@ -0,0 +1,23 @@
+
\ No newline at end of file
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
index ec822096b9..7da85a1426 100644
--- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
@@ -1319,10 +1319,10 @@ void FlexFormattingContext::distribute_any_remaining_free_space()
if (auto_margins == 0 && number_of_items > 0) {
switch (flex_container().computed_values().justify_content()) {
case CSS::JustifyContent::Start:
- case CSS::JustifyContent::Stretch:
- case CSS::JustifyContent::Normal:
initial_offset = 0;
break;
+ case CSS::JustifyContent::Stretch:
+ case CSS::JustifyContent::Normal:
case CSS::JustifyContent::FlexStart:
if (is_direction_reverse()) {
initial_offset = inner_main_size(flex_container());
@@ -2225,10 +2225,10 @@ CSSPixelPoint FlexFormattingContext::calculate_static_position(Box const& box) c
CSSPixels main_offset = 0;
switch (flex_container().computed_values().justify_content()) {
case CSS::JustifyContent::Start:
- case CSS::JustifyContent::Stretch:
- case CSS::JustifyContent::Normal:
pack_from_end = false;
break;
+ case CSS::JustifyContent::Stretch:
+ case CSS::JustifyContent::Normal:
case CSS::JustifyContent::FlexStart:
case CSS::JustifyContent::SpaceBetween:
pack_from_end = is_direction_reverse();