servo/components/layout_2020/flow
Martin Robinson 30ab348116 Properly position absolutes with static insets that are children of floats
Previously, final float positions were calculated when their parents
were positioned. This prevented proper positioning of absolute children
of floats with static insets, because they accumulate offsets as they
are hoisted up the tree.

This change moves the final float positioning to
`PlacementState::place_fragment` for the float itself so that it happens
before any insets are updated for hoisted descendants. In addition to
simplifying the code, this makes it a bit more efficient. Finally,
floats are taken into account when updating static insets of hoisted
boxes.

Fixes #29826.
2023-06-22 01:55:21 +02:00
..
construct.rs layout_2020: Check blocks for whether they will establish a formatting context 2023-05-31 23:28:28 +08:00
float.rs Auto merge of #29894 - mrobinson:ditch-static-position-closure, r=Loirooriol 2023-06-21 08:16:49 +02:00
inline.rs Simplify layout of absolutes with static insets 2023-06-20 11:44:25 +02:00
mod.rs Properly position absolutes with static insets that are children of floats 2023-06-22 01:55:21 +02:00
root.rs Simplify layout of absolutes with static insets 2023-06-20 11:44:25 +02:00