diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/Node.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/Node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Node.cpp b/Userland/Libraries/LibWeb/Layout/Node.cpp index 84a4f38af9..b8205cb667 100644 --- a/Userland/Libraries/LibWeb/Layout/Node.cpp +++ b/Userland/Libraries/LibWeb/Layout/Node.cpp @@ -329,7 +329,7 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style) if (computed_values.opacity() == 0) m_visible = false; - if (auto width = specified_style.property(CSS::PropertyID::Width); width.has_value()) + if (auto width = specified_style.property(CSS::PropertyID::Width); width.has_value() && !width.value()->is_auto()) m_has_definite_width = true; computed_values.set_width(specified_style.length_or_fallback(CSS::PropertyID::Width, {})); computed_values.set_min_width(specified_style.length_or_fallback(CSS::PropertyID::MinWidth, {})); |