1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 08:57:35 +00:00

LibWeb: Make InlineLevelIterator skip over positioned elements

This commit is contained in:
Andreas Kling 2022-02-15 01:54:22 +01:00
parent e842e955e5
commit 6444525edc

View file

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