mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
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.
This commit is contained in:
parent
ffccc5c88b
commit
4cb4332602
8 changed files with 17 additions and 31 deletions
|
@ -1,2 +0,0 @@
|
|||
[clear-on-child-with-margins-2.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[adjoining-floats-dynamic.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[floats-rule3-outside-left-002.xht]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[block_formatting_context_float_placement_a.html]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue