summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-11-28 16:40:15 +0100
committerAndreas Kling <kling@serenityos.org>2022-11-28 19:14:05 +0100
commite3b8a8f7c8d3e6f9d26c2f11fb1966f557ce3208 (patch)
treef33c79159e0dbc04534cad9323514d579a5e239e /Userland/Libraries
parentc590c5c444b3c8acd6e1711ef52b9f12cbab584b (diff)
downloadserenity-e3b8a8f7c8d3e6f9d26c2f11fb1966f557ce3208.zip
LibWeb: Treat unresolvable percentage width on inline-block as auto
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
index 5d05e561b9..ee16b26964 100644
--- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
@@ -127,7 +127,7 @@ void InlineFormattingContext::dimension_box_on_line(Box const& box, LayoutMode l
auto const& width_value = box.computed_values().width();
float unconstrained_width = 0;
- if (width_value.is_auto()) {
+ if (should_treat_width_as_auto(box, *m_available_space)) {
auto result = calculate_shrink_to_fit_widths(box);
auto available_width = m_available_space->width.to_px()