diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2020-07-22 10:52:11 -0700 |
---|---|---|
committer | Oriol Brufau <obrufau@igalia.com> | 2023-06-03 06:09:21 +0200 |
commit | cdec48328ed82e9e84d5a9c2ef7d3b6b10a59fe7 (patch) | |
tree | 2cd7fbc70593b00a7151455e2dec6774ff3d0a7e /components/layout_2020/flexbox/layout.rs | |
parent | 053a0aa4fd7360c8504a65ba177d7047077129b2 (diff) | |
download | servo-cdec48328ed82e9e84d5a9c2ef7d3b6b10a59fe7.tar.gz servo-cdec48328ed82e9e84d5a9c2ef7d3b6b10a59fe7.zip |
Place floats in layout 2020, but don't flow text around the floats yet.
This commit puts floats behind the `layout.floats.enabled` pref, because of the
following issues and unimplemented features:
* Inline formatting contexts don't take floats into account, so text doesn't
flow around the floats yet.
* Non-floated block formatting contexts don't take floats into account, so BFCs
can overlap floats.
* Block formatting contexts that contain floats don't expand vertically to
contain all the floats. That is, floats can stick out the bottom of BFCs,
contra spec.
Diffstat (limited to 'components/layout_2020/flexbox/layout.rs')
-rw-r--r-- | components/layout_2020/flexbox/layout.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/layout_2020/flexbox/layout.rs b/components/layout_2020/flexbox/layout.rs index 1c8001d9b95..24e514b8010 100644 --- a/components/layout_2020/flexbox/layout.rs +++ b/components/layout_2020/flexbox/layout.rs @@ -800,6 +800,7 @@ impl FlexLine<'_> { flex_context.sides_to_flow_relative(item.padding), flex_context.sides_to_flow_relative(item.border), margin, + Length::zero(), collapsed_margin, ) }) |