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:
parent
e842e955e5
commit
6444525edc
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue