mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Handle inline-block as block for now in layout 2020
That makes Servo not panic when loading servo.org.
This commit is contained in:
parent
0e503a0e0c
commit
6345e353d4
1 changed files with 3 additions and 5 deletions
|
@ -331,7 +331,9 @@ where
|
|||
contents: replaced,
|
||||
}),
|
||||
Ok(non_replaced) => match display_inside {
|
||||
DisplayInside::Flow => {
|
||||
DisplayInside::Flow |
|
||||
// TODO: Properly implement display: inline-block.
|
||||
DisplayInside::FlowRoot => {
|
||||
// Whatever happened before, we just found an inline level element, so
|
||||
// all we need to do is to remember this ongoing inline level box.
|
||||
self.ongoing_inline_boxes_stack.push(InlineBox {
|
||||
|
@ -350,10 +352,6 @@ where
|
|||
inline_box.last_fragment = true;
|
||||
Arc::new(InlineLevelBox::InlineBox(inline_box))
|
||||
},
|
||||
DisplayInside::FlowRoot => {
|
||||
// a.k.a. `inline-block`
|
||||
unimplemented!()
|
||||
},
|
||||
DisplayInside::None | DisplayInside::Contents => panic!(":("),
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue