mirror of
https://github.com/servo/servo.git
synced 2025-06-19 06:38:59 +01:00
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. |
||
---|---|---|
.. | ||
construct.rs | ||
float.rs | ||
inline.rs | ||
mod.rs | ||
root.rs |