servo/components/layout_2020/flow
Martin Robinson bb13702556 Properly position floats when subsequent boxes collapse margins with containing block
Margins should be able to collapse through floats when collapsing with
parent blocks (the containing block). To properly place floats in this
situation, we need to look at these subsequent floats to find out how
much of the margin will collapse with the parent.

This initial implementation is very basic and the second step would be
to cache this in order to avoid having to constantly recalculate it.

Fixes #29915.

Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2023-06-27 22:45:42 +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 Properly position floats when subsequent boxes collapse margins with containing block 2023-06-27 22:45:42 +02:00
inline.rs Properly position floats when subsequent boxes collapse margins with containing block 2023-06-27 22:45:42 +02:00
mod.rs Properly position floats when subsequent boxes collapse margins with containing block 2023-06-27 22:45:42 +02:00
root.rs Simplify layout of absolutes with static insets 2023-06-20 11:44:25 +02:00