Pārlūkot izejas kodu

LibWeb: Don't skip position:relative elements in inline-level layout

InlineLevelIterator was wrongly skipping over all positioned elements,
instead of just the absolutely positioned ones.
Andreas Kling 3 gadi atpakaļ
vecāks
revīzija
65b38f2623

+ 1 - 1
Userland/Libraries/LibWeb/Layout/InlineLevelIterator.cpp

@@ -154,7 +154,7 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next(float available_wi
         return item;
     }
 
-    if (m_current_node->is_positioned()) {
+    if (m_current_node->is_absolutely_positioned()) {
         skip_to_next();
         return next(available_width);
     }