servo/components/layout_2020/flow
Martin Robinson bd285f543e
Layout floats as children of their inline ancestors (#30130)
When layout was split into two phases, floats were laid out as direct
children of the inline formatting context. This meant that they were
positioned properly, but not properly made children of their inline
ancestors' stacking contexts. This change maintains the proper
positioning of floats, but positions them relatively to their inline
ancestors.

The big change here is that `text-align` needs to be taken into account
before actually laying out LineItems. This has the added benefit of
setting inline layout for the implementation of `text-align: full`. Now
all line items are laid out at the real final position and we can adjust
the `start_corner` property of float `BoxFragments` when their ancestors
are laid out.
2023-08-22 20:10:34 +00:00
..
construct.rs Add initial support for css-text-3 whitespace handling (#29828) 2023-07-20 18:34:31 +00:00
float.rs Handle inline margins when avoiding floats (#30072) 2023-08-09 21:19:16 +00:00
inline.rs Layout floats as children of their inline ancestors (#30130) 2023-08-22 20:10:34 +00:00
mod.rs Split line layout into two phases (#30089) 2023-08-11 07:19:50 +00:00
root.rs Remove rayon_croissant and clean up contains_floats (#29960) 2023-07-19 07:01:55 +00:00