mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibWeb: Make InlineLevelIterator emit absolutely positioned items
Note that we don't put absolutely positioned items on a line! This is just so that IFC can discover boxes and pass them along to BFC. This fixes an issue where only direct children of the IFC containing block were considered for absolute positioning. Now we pick up absolutely positioned children of nested inline nodes as well.
This commit is contained in:
parent
6354a9a030
commit
2dfb617c5b
3 changed files with 11 additions and 9 deletions
|
@ -155,8 +155,12 @@ Optional<InlineLevelIterator::Item> InlineLevelIterator::next(float available_wi
|
|||
}
|
||||
|
||||
if (m_current_node->is_absolutely_positioned()) {
|
||||
auto& node = *m_current_node;
|
||||
skip_to_next();
|
||||
return next(available_width);
|
||||
return Item {
|
||||
.type = Item::Type::AbsolutelyPositionedElement,
|
||||
.node = &node,
|
||||
};
|
||||
}
|
||||
|
||||
if (is<Layout::BreakNode>(*m_current_node)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue