servo/components/layout_2020/display_list
Martin Robinson 4cb4332602
Correct rendering of floated root
Fix two issues around floating a root element:

1. In the StackingContext code handle the case where a root element is a
   Float fragment and not a Box fragment. This fixes a debug assertion
   failure in the css/CSS2/float/float-root.html test.
2. When initializing the SequentialLayoutState, use the containing block
   width as the maximum inline float placement position instead of
   infinity. This fixes the rendering of css/CSS2/float/float-root.html.

Note that css/CSS2/float/float-root.html was passing before, because
both the test and reference were subject to the same bug. This fixes a
couple other tests as well.
2023-06-20 17:46:45 +02:00
..
background.rs layout_2020: Implement support for backface-visibility 2020-05-16 09:42:45 +02:00
conversions.rs Add support for text-decoration-style 2020-03-23 11:10:44 +01:00
gradient.rs Refactor Layout 2020 layout for a compositor-side scroll tree 2023-05-17 10:46:27 +02:00
mod.rs Layout 2020: Move all Fragment code to the fragment_tree directory 2023-06-04 18:12:11 +02:00
stacking_context.rs Correct rendering of floated root 2023-06-20 17:46:45 +02:00