mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Place float children of floats correctly in the flow tree.
This commit is contained in:
parent
63e7866ce3
commit
9fcf8b4402
1 changed files with 2 additions and 1 deletions
|
@ -401,7 +401,8 @@ impl LayoutTreeBuilder {
|
|||
|
||||
let new_generator = match (display, parent_generator.flow, sibling_flow) {
|
||||
// Floats
|
||||
(CSSDisplayBlock, BlockFlow(_), _) if !is_float.is_none() => {
|
||||
(CSSDisplayBlock, BlockFlow(_), _) |
|
||||
(CSSDisplayBlock, FloatFlow(_), _) if !is_float.is_none() => {
|
||||
self.create_child_generator(node, parent_generator, Flow_Float(is_float.get()))
|
||||
}
|
||||
// If we're placing a float after an inline, append the float to the inline flow,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue