diff --git a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp index b2d27bc5a7..192fb3431e 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include namespace Web::Layout { @@ -75,6 +76,11 @@ Optional InlineLevelIterator::next(float available_wi }; } + if (is(*m_current_node)) { + skip_to_next(); + return next(available_width); + } + if (!is(*m_current_node)) { skip_to_next(); return next(available_width);