Browse Source

LibWeb: Make InlineLevelIterator skip over positioned elements

Andreas Kling 3 years ago
parent
commit
6444525edc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp

+ 5 - 0
Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp

@@ -137,6 +137,11 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next(float available_wi
         return item;
         return item;
     }
     }
 
 
+    if (m_current_node->is_positioned()) {
+        skip_to_next();
+        return next(available_width);
+    }
+
     if (is<Layout::BreakNode>(*m_current_node)) {
     if (is<Layout::BreakNode>(*m_current_node)) {
         skip_to_next();
         skip_to_next();
         return Item {
         return Item {